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
This commit is contained in:
Matthias Clasen 2012-03-08 22:35:43 -05:00
parent a253d4cfec
commit 9d1688680c

View File

@ -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;