[gtk+] wayland: handle key up events earlier in deliver_key_event
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: handle key up events earlier in deliver_key_event
- Date: Wed, 2 Mar 2016 18:07:32 +0000 (UTC)
commit 551f1742f5c1a37f93a2239193b45779687b008d
Author: Ray Strode <rstrode redhat com>
Date: Tue Mar 1 08:49:27 2016 -0500
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
gdk/wayland/gdkdevice-wayland.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 9cfe6d9..a5735d0 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]