[gtk+/gtk-3-20] wayland: Fix the map_virtual_modifiers implementation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] wayland: Fix the map_virtual_modifiers implementation
- Date: Tue, 19 Apr 2016 14:57:36 +0000 (UTC)
commit 49bddf48ad496b83b3a27e8bf9274de113e3c393
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 16 23:16:12 2016 -0400
wayland: Fix the map_virtual_modifiers implementation
We were not stripping real modifiers out, and thus always
thought there's a conflict when the passed in modifiers
included any real modifiers.
gdk/wayland/gdkkeys-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkkeys-wayland.c b/gdk/wayland/gdkkeys-wayland.c
index c8190c4..453d976 100644
--- a/gdk/wayland/gdkkeys-wayland.c
+++ b/gdk/wayland/gdkkeys-wayland.c
@@ -417,7 +417,7 @@ gdk_wayland_keymap_map_virtual_modifiers (GdkKeymap *keymap,
mods = get_xkb_modifiers (xkb_keymap, *state);
xkb_state = xkb_state_new (xkb_keymap);
- xkb_state_update_mask (xkb_state, mods, 0, 0, 0, 0, 0);
+ xkb_state_update_mask (xkb_state, mods & ~0xff, 0, 0, 0, 0, 0);
mapped = xkb_state_serialize_mods (xkb_state, XKB_STATE_MODS_EFFECTIVE);
if ((mapped & mods & 0xff) != 0)
ret = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]