From 9d1688680c1f2320b3795e15643ac73dc004f6dc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Mar 2012 22:35:43 -0500 Subject: [PATCH] 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 file changed, 2 deletions(-) diff --git a/gdk/x11/gdkdevicemanager-xi2.c b/gdk/x11/gdkdevicemanager-xi2.c index 0b9dc19f71..0ae7117dfe 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;