mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
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:
parent
a253d4cfec
commit
9d1688680c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user