summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2019-03-08 15:04:39 +0000
committerokan <okan>2019-03-08 15:04:39 +0000
commiteab4b7e4b5f026d6859d92a18e1630197bd602e0 (patch)
tree48cafcb799e83415f433e43fbcd39a59a342b44c
parentbf43b6241405dffa02ae15bf4ec1d55f84ea52aa (diff)
downloadcwm-eab4b7e4b5f026d6859d92a18e1630197bd602e0.tar.gz
cwm-eab4b7e4b5f026d6859d92a18e1630197bd602e0.tar.xz
cwm-eab4b7e4b5f026d6859d92a18e1630197bd602e0.zip
extend verbose logging for key/button events
-rw-r--r--xevents.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/xevents.c b/xevents.c
index bbf8722..cb2cfee 100644
--- a/xevents.c
+++ b/xevents.c
@@ -234,7 +234,8 @@ xev_handle_buttonpress(XEvent *ee)
 	struct screen_ctx	*sc;
 	struct bind_ctx		*mb;
 
-	LOG_DEBUG3("window: 0x%lx", e->window);
+	LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx",
+	    e->root, e->window, e->subwindow);
 
 	e->state &= ~IGNOREMODMASK;
 
@@ -272,7 +273,8 @@ xev_handle_buttonrelease(XEvent *ee)
 	XButtonEvent		*e = &ee->xbutton;
 	struct client_ctx	*cc;
 
-	LOG_DEBUG3("window: 0x%lx", ee->xbutton.window);
+	LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx",
+	    e->root, e->window, e->subwindow);
 
 	if ((cc = client_find(e->window)) != NULL) {
 		if (cc->flags & (CLIENT_ACTIVE | CLIENT_HIGHLIGHT)) {
@@ -292,7 +294,7 @@ xev_handle_keypress(XEvent *ee)
 	KeySym			 keysym, skeysym;
 	unsigned int		 modshift;
 
-	LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx ",
+	LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx",
 	    e->root, e->window, e->subwindow);
 
 	if ((sc = screen_find(e->root)) == NULL)
@@ -346,7 +348,8 @@ xev_handle_keyrelease(XEvent *ee)
 	KeySym			 keysym;
 	unsigned int		 i;
 
-	LOG_DEBUG3("window: 0x%lx", e->window);
+	LOG_DEBUG3("root: 0x%lx window: 0x%lx subwindow: 0x%lx",
+	    e->root, e->window, e->subwindow);
 
 	if ((sc = screen_find(e->root)) == NULL)
 		return;