x11: Refresh key mapping when notified by X11
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 8 Feb 2011 12:08:18 +0000 (12:08 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 8 Feb 2011 12:13:13 +0000 (12:13 +0000)
commit9090070a98d7ab8201d29807b18ffad4db89a131
tree9a124185a10485db3909d887f8d980efd6668bdc
parent4956152a1157e181b9e8b8179420628aa77a73fb
x11: Refresh key mapping when notified by X11

Use both the MappingNotify event and the XKB XkbMapNotify event, if
we're compiled with XKB support.

This change is also useful for making ClutterKeymapX11 an event
translator and let it deal with XKB events internally like we do for
stage and input events.

Based on a patch by: Damien Lespiau <damien.lespiau@intel.com>

Signed-off by: Emmanuele Bassi <ebassi@linux.intel.com>

http://bugzilla.clutter-project.org/show_bug.cgi?id=2525
clutter/x11/clutter-backend-x11.h
clutter/x11/clutter-keymap-x11.c
clutter/x11/clutter-stage-x11.c