diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-12-20 14:51:37 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-12-20 14:51:37 -0500 |
commit | 552267b93d2e02773edd2865846a79f70759d03b (patch) | |
tree | e233d6471132402b8f337442b9e21dce43edf0b9 | |
parent | 92ca52822c3499fef49cd760f0178cf7262ea47d (diff) | |
download | gtk+-552267b93d2e02773edd2865846a79f70759d03b.tar.gz |
Don't keep discrete scroll events in the queue
We are not going to compress those anyway.
-rw-r--r-- | gdk/gdkevents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index d0680e3696..e577c6b9c0 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -522,7 +522,8 @@ _gdk_event_queue_find_first (GdkDisplay *display) if (pending_motion) return pending_motion; - if ((event->event_type == GDK_MOTION_NOTIFY || event->event_type == GDK_SCROLL) && + if ((event->event_type == GDK_MOTION_NOTIFY || + (event->event_type == GDK_SCROLL && gdk_scroll_event_get_direction (event) == GDK_SCROLL_SMOOTH)) && (event->flags & GDK_EVENT_FLUSHED) == 0) pending_motion = tmp_list; else |