[gtk+] xi2: Don't reset scroll valuators too often



commit 9d1688680c1f2320b3795e15643ac73dc004f6dc
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 8 22:35:43 2012 -0500

    xi2: Don't reset scroll valuators too often
    
    According to XInput gurus, a motion event without valuators
    does not invalidate the stored value, so we should keep it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=671659

 gdk/x11/gdkdevicemanager-xi2.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c
index 0b9dc19..0ae7117 100644
--- a/gdk/x11/gdkdevicemanager-xi2.c
+++ b/gdk/x11/gdkdevicemanager-xi2.c
@@ -1343,8 +1343,6 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
             event->scroll.state = _gdk_x11_device_xi2_translate_state (&xev->mods, &xev->buttons, &xev->group);
             break;
           }
-	else
-          _gdk_device_xi2_reset_scroll_valuators (GDK_X11_DEVICE_XI2 (source_device));
 
         event->motion.type = GDK_MOTION_NOTIFY;
         event->motion.window = window;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]