[vlc-devel] commit: XCB window: handle change of keymaps ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Aug 15 18:35:17 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 15 19:32:57 2009 +0300| [387117605801be2b25c543be53a3963fa48c0073] | committer: Rémi Denis-Courmont 

XCB window: handle change of keymaps

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

 modules/video_output/xcb/keys.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/modules/video_output/xcb/keys.c b/modules/video_output/xcb/keys.c
index 3ea3375..e57fd24 100644
--- a/modules/video_output/xcb/keys.c
+++ b/modules/video_output/xcb/keys.c
@@ -209,7 +209,14 @@ int ProcessKeyEvent (key_handler_t *ctx, xcb_generic_event_t *ev)
         case XCB_KEY_RELEASE:
             break;
 
-        /*TODO: key mappings update*/
+        case XCB_MAPPING_NOTIFY:
+        {
+            xcb_mapping_notify_event_t *e = (xcb_mapping_notify_event_t *)ev;
+            msg_Dbg (ctx->obj, "refreshing keyboard mapping");
+            xcb_refresh_keyboard_mapping (ctx->syms, e);
+            break;
+        }
+
         default:
             return -1;
     }




More information about the vlc-devel mailing list