[gtk+/touch-for-3.4-2: 34/44] gdk: Only trigger motion hints machinery on motion events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touch-for-3.4-2: 34/44] gdk: Only trigger motion hints machinery on motion events
- Date: Thu, 1 Mar 2012 20:29:02 +0000 (UTC)
commit 8ac0f73f030edb5327bfda531153db59499c9134
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jan 5 01:00:19 2012 +0100
gdk: Only trigger motion hints machinery on motion events
Touch events have no need for it, plus the concept behind
gdk_event_request_motions() doesn't wrap around multiple
touches within a device.
gdk/gdkwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 5315ee4..5aaead2 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9391,6 +9391,7 @@ proxy_pointer_event (GdkDisplay *display,
is_hint = FALSE;
if (event_win &&
+ source_event->type == GDK_MOTION_NOTIFY &&
(evmask & GDK_POINTER_MOTION_HINT_MASK))
{
gulong *device_serial;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]