[gtk+] gdk: Address pad events similarly to keyboard events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Address pad events similarly to keyboard events
- Date: Tue, 23 Aug 2016 19:10:16 +0000 (UTC)
commit f1a9cd466e48243ff6a3592b933bab2336e8c04d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Aug 4 19:10:21 2016 +0200
gdk: Address pad events similarly to keyboard events
We want the same treatment for those, the event will be emitted on the
toplevel, which will then decide what to do with the event.
It just doesn't make much sense to propagate those up/down the hierarchy,
when we want specifically one action being triggered from those.
https://bugzilla.gnome.org/show_bug.cgi?id=770026
gdk/gdkwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4a49c01..be40ec5 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9860,7 +9860,8 @@ _gdk_windowing_got_event (GdkDisplay *display,
if (device)
{
- if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD)
+ if (gdk_device_get_source (device) != GDK_SOURCE_KEYBOARD &&
+ gdk_device_get_source (device) != GDK_SOURCE_TABLET_PAD)
{
pointer_info = _gdk_display_get_pointer_info (display, device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]