mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
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:
parent
619799ba3b
commit
551f1742f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user