[vlc-commits] xcb: print X11 key symbol in debug

Rémi Denis-Courmont git at videolan.org
Mon Aug 20 09:45:05 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 20 10:34:25 2012 +0300| [d9bf912ee21daddabe8a8a897ced7ba18503cf39] | committer: Rémi Denis-Courmont

xcb: print X11 key symbol in debug

This eases matching of unknown keys.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9bf912ee21daddabe8a8a897ced7ba18503cf39
---

 modules/video_output/xcb/keys.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/xcb/keys.c b/modules/video_output/xcb/keys.c
index 265f101..2af602e 100644
--- a/modules/video_output/xcb/keys.c
+++ b/modules/video_output/xcb/keys.c
@@ -131,7 +131,8 @@ int ProcessKeyEvent (key_handler_t *ctx, xcb_generic_event_t *ev)
             xcb_keysym_t sym = xcb_key_press_lookup_keysym (ctx->syms, e, 0);
             uint_fast32_t vk = ConvertKeySym (sym);
 
-            msg_Dbg (ctx->obj, "key: 0x%08"PRIxFAST32, vk);
+            msg_Dbg (ctx->obj, "key: 0x%08"PRIxFAST32" (X11: 0x%04"PRIx32")",
+                     vk, sym);
             if (vk == KEY_UNSET)
                 break;
             if (e->state & XCB_MOD_MASK_SHIFT)



More information about the vlc-commits mailing list