projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ca528
)
Don't keep discrete scroll events in the queue
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 20 Dec 2021 19:51:37 +0000
(14:51 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 20 Dec 2021 19:51:37 +0000
(14:51 -0500)
We are not going to compress those anyway.
gdk/gdkevents.c
patch
|
blob
|
history
diff --git
a/gdk/gdkevents.c
b/gdk/gdkevents.c
index d0680e369623fff0de7b33d84f38023aa09bdb94..e577c6b9c0fc6953262050c7e627395d2d483d06 100644
(file)
--- 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