]> Pileus Git - ~andy/gtk/commit
Add support for extra virtual modifiers: (#85780, Owen Taylor)
authorMatthias Clasen <mclasen@redhat.com>
Tue, 6 Sep 2005 17:56:01 +0000 (17:56 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 6 Sep 2005 17:56:01 +0000 (17:56 +0000)
commit543ce67477599e8b519a66fec1fc34d2e7157066
treecf80f6cb706ccad8145aa7eb9087e2054172f83a
parent5e93e9da16947fd4d8fe8541fdcd26cb20bdbed7
Add support for extra virtual modifiers: (#85780, Owen Taylor)

2005-09-06  Matthias Clasen  <mclasen@redhat.com>

Add support for extra virtual modifiers:  (#85780, Owen Taylor)

* gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a
modmap to maintain the information which X modifiers map to
virtual modifiers.
(get_xkb): Set up the modmap from the XKB tables.
(update_keymaps): Set up the modmap from the information returned
by XGetModifierMapping in the non-XKB case.

* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New
function to set the virtual modifiers in the state.

* gdk/x11/gdkevents-x11.c (translate_key_event): Call
_gdk_keymap_add_virtual_modifiers here.

* gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super,
Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
for GDK_MOD1_MASK.
ChangeLog
ChangeLog.pre-2-10
gdk/gdktypes.h
gdk/x11/gdkevents-x11.c
gdk/x11/gdkkeys-x11.c
gdk/x11/gdkprivate-x11.h