From b22a9ce617d5827748de75068a2565be0e15ab75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Tue, 26 May 2015 16:57:25 +0200 Subject: [PATCH] Improve logging of button events. --- src/click.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/click.c b/src/click.c index 690bd1f8..bd2dcb9f 100644 --- a/src/click.c +++ b/src/click.c @@ -349,8 +349,8 @@ done: */ int handle_button_press(xcb_button_press_event_t *event) { Con *con; - DLOG("Button %d %s on window 0x%08x (child 0x%08x) at (%d, %d) (root %d, %d)\n", - event->state, (event->response_type == XCB_BUTTON_PRESS ? "press" : "release"), + DLOG("Button %d (state %d) %s on window 0x%08x (child 0x%08x) at (%d, %d) (root %d, %d)\n", + event->detail, event->state, (event->response_type == XCB_BUTTON_PRESS ? "press" : "release"), event->event, event->child, event->event_x, event->event_y, event->root_x, event->root_y); -- 2.39.5