[PATCH libxcwm 05/15] Clean up a mention of xtoq in libxcwm

Jon TURNEY jon.turney at dronecode.org.uk
Mon Nov 5 14:43:59 PST 2012


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 <jon.turney at dronecode.org.uk>
---
 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



More information about the xorg-devel mailing list