mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
Make the modmap reflexive. (_gdk_keymap_add_virtual_modifiers): Don't add
2005-09-06 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive. (_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta if they are mapped to the same modifier.
This commit is contained in:
parent
9708810205
commit
2726ffafe3
@ -1,5 +1,9 @@
|
||||
2005-09-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
|
||||
(_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
|
||||
if they are mapped to the same modifier.
|
||||
|
||||
* gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
|
||||
to gtkstatusicon.c and gtktrayicon-x11.c
|
||||
|
||||
|
@ -1,5 +1,9 @@
|
||||
2005-09-06 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkkeys-x11.c (update_modmap): Make the modmap reflexive.
|
||||
(_gdk_keymap_add_virtual_modifiers): Don't add both Alt and Meta
|
||||
if they are mapped to the same modifier.
|
||||
|
||||
* gtk/Makefile.am: Rename gtkstatusicon-x11.c and gtktrayicon.c
|
||||
to gtkstatusicon.c and gtktrayicon-x11.c
|
||||
|
||||
|
@ -190,6 +190,9 @@ update_modmap (Display *display,
|
||||
for (i = 0; vmods[i].name; i++)
|
||||
vmods[i].atom = XInternAtom (display, vmods[i].name, FALSE);
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
keymap_x11->modmap[i] = 1 << i;
|
||||
|
||||
for (i = 0; i < XkbNumVirtualMods; i++)
|
||||
{
|
||||
for (j = 0; vmods[j].atom; j++)
|
||||
@ -367,6 +370,9 @@ update_keymaps (GdkKeymapX11 *keymap_x11)
|
||||
keymap_x11->group_switch_mask = 0;
|
||||
keymap_x11->num_lock_mask = 0;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
keymap_x11->modmap[i] = 1 << i;
|
||||
|
||||
/* There are 8 sets of modifiers, with each set containing
|
||||
* max_keypermod keycodes.
|
||||
*/
|
||||
@ -1519,7 +1525,9 @@ _gdk_keymap_add_virtual_modifiers (GdkKeymap *keymap,
|
||||
{
|
||||
if ((1 << i) & *modifiers)
|
||||
{
|
||||
if (keymap_x11->modmap[i] & GDK_SUPER_MASK)
|
||||
if (keymap_x11->modmap[i] & GDK_MOD1_MASK)
|
||||
*modifiers |= GDK_MOD1_MASK;
|
||||
else if (keymap_x11->modmap[i] & GDK_SUPER_MASK)
|
||||
*modifiers |= GDK_SUPER_MASK;
|
||||
else if (keymap_x11->modmap[i] & GDK_HYPER_MASK)
|
||||
*modifiers |= GDK_HYPER_MASK;
|
||||
|
Loading…
Reference in New Issue
Block a user