[gtk+/gdk-backend-wayland] wayland: Clear modifier mask before restoring from keyboard_focus value



commit de82b82dd879c2ae2132b13faf705537f3f78dcb
Author: Kristian Høgsberg <krh bitplanet net>
Date:   Wed Feb 9 16:36:15 2011 -0500

    wayland: Clear modifier mask before restoring from keyboard_focus value

 gdk/wayland/gdkdevice-wayland.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index a2bc8e5..39e1743 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -495,6 +495,7 @@ update_modifiers(GdkWaylandDevice *device, struct wl_array *keys)
   xkb = _gdk_wayland_keymap_get_xkb_desc (keymap);
 
   end = keys->data + keys->size;
+  device->modifiers = 0;
   for (k = keys->data; k < end; k++)
     device->modifiers |= xkb->map->modmap[*k];
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]