wayland: Clear modifier mask before restoring from keyboard_focus value

This commit is contained in:
Kristian Høgsberg 2011-02-09 16:36:15 -05:00
parent c36dfccc64
commit de82b82dd8

View File

@ -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];