Also, make debug output for injected input events a bit clearer Also, add button number to xcwm_input_mouse_button_event debug output
Signed-off-by: Jon TURNEY <[email protected]> --- src/libxcwm/input.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libxcwm/input.c b/src/libxcwm/input.c index 2950d55..55e598a 100644 --- a/src/libxcwm/input.c +++ b/src/libxcwm/input.c @@ -45,7 +45,7 @@ xcwm_input_key_event(xcwm_context_t *context, uint8_t code, int state) XCB_CURRENT_TIME, none, 0, 0, 1); xcb_flush(context->conn); - printf("xcwm.c received key event - uint8_t '%i'\n", code); + printf("Injected key event - key code %i\n", code); } void @@ -67,8 +67,8 @@ xcwm_input_mouse_button_event(xcwm_window_t *window, XCB_CURRENT_TIME, window->window_id, 0, 0, 0); xcb_flush(window->context->conn); - printf("Mouse event received by xtoq.c - (%ld,%ld), state: %d\n", - x, y, state); + printf("Injected mouse event - (%ld,%ld), button %d, state: %d\n", + x, y, button, state); } void -- 1.7.9 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
