Improve logging of button events.

This commit is contained in:
Ingo Bürk 2015-05-26 16:57:25 +02:00
parent 00c2fe4b69
commit b22a9ce617

View File

@ -349,8 +349,8 @@ done:
*/ */
int handle_button_press(xcb_button_press_event_t *event) { int handle_button_press(xcb_button_press_event_t *event) {
Con *con; Con *con;
DLOG("Button %d %s on window 0x%08x (child 0x%08x) at (%d, %d) (root %d, %d)\n", DLOG("Button %d (state %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"), 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->event, event->child, event->event_x, event->event_y, event->root_x,
event->root_y); event->root_y);