From: Ingo Bürk Date: Tue, 26 May 2015 14:57:25 +0000 (+0200) Subject: Improve logging of button events. X-Git-Tag: 4.11~102^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F1722%2Fhead;p=i3%2Fi3 Improve logging of button events. --- 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);