From: Matthias Clasen Date: Mon, 20 Dec 2021 19:51:37 +0000 (-0500) Subject: Don't keep discrete scroll events in the queue X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~5^2~24^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=552267b93d2e02773edd2865846a79f70759d03b;p=gtk4.git Don't keep discrete scroll events in the queue We are not going to compress those anyway. --- 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