diff options
author | Luca Bacci <luca.bacci982@gmail.com> | 2022-05-06 13:50:23 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2022-05-24 12:30:49 +0000 |
commit | 7752467847c14ea1c84a716110d0b3e7ab152afe (patch) | |
tree | 123610a3ce9122ed1524748934c2267386f65b1f /gdk/gdkevents.c | |
parent | 8514457d0fef27fedb785a5ffed2b31c79090424 (diff) | |
download | gtk+-7752467847c14ea1c84a716110d0b3e7ab152afe.tar.gz |
Drop pointer_emulated discrete scroll events
GTK4 has had smooth scroll events since the beginning, so we
prefer not to emit emulated discrete scroll events at all
Diffstat (limited to 'gdk/gdkevents.c')
-rw-r--r-- | gdk/gdkevents.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index cc06e5e0c0..044eb72292 100644 --- a/gdk/gdkevents.c +++ b/gdk/gdkevents.c @@ -920,14 +920,6 @@ gdk_event_get_pointer_emulated (GdkEvent *event) return tevent->pointer_emulated; } - case GDK_SCROLL: - case GDK_SCROLL_SMOOTH: - { - GdkScrollEvent *sevent = (GdkScrollEvent *) event; - - return sevent->pointer_emulated; - } - default: break; } @@ -2373,15 +2365,13 @@ gdk_scroll_event_new_discrete (GdkSurface *surface, GdkDeviceTool *tool, guint32 time, GdkModifierType state, - GdkScrollDirection direction, - gboolean emulated) + GdkScrollDirection direction) { GdkScrollEvent *self = gdk_event_alloc (GDK_SCROLL, surface, device, time); self->tool = tool != NULL ? g_object_ref (tool) : NULL; self->state = state; self->direction = direction; - self->pointer_emulated = emulated; self->unit = GDK_SCROLL_UNIT_WHEEL; return (GdkEvent *) self; |