wayland: handle key up events earlier in deliver_key_event

We don't need the key repeat rate or anything like that when
handling key up events, so do key up events first before querying
for that information.

https://bugzilla.gnome.org/show_bug.cgi?id=757942
This commit is contained in:
Ray Strode 2016-03-01 08:49:27 -05:00
parent 619799ba3b
commit 551f1742f5

View File

@ -1740,6 +1740,9 @@ deliver_key_event (GdkWaylandDeviceData *device,
event->key.hardware_keycode, event->key.keyval,
event->key.string, event->key.state));
if (state == 0)
return;
if (!xkb_keymap_key_repeats (xkb_keymap, key))
return;
@ -1749,9 +1752,6 @@ deliver_key_event (GdkWaylandDeviceData *device,
device->repeat_count++;
device->repeat_key = key;
if (state == 0)
return;
if (device->repeat_count == 1)
timeout = delay;
else