summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorlilydjwg <lilydjwg@gmail.com>2024-04-18 21:22:57 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-18 21:25:36 +0200
commitbaedc998b0fe3c29e1e88cc426575306b0f5ea44 (patch)
tree6fa6b7095c9565e05a976c23912d5e32b29e2cb6 /src/gui_gtk_x11.c
parent133ed2a592e4d7998a8f6afa3de9f057feb23f0a (diff)
patch 9.1.0348: X11 does not ignore smooth scroll eventv9.1.0348
Problem: X11 does not ignore smooth scroll event (laniakea64) Solution: Correctly ignore unwanted smooth scroll events on X11 (lilydjwg) fixes #14578 closes: #14583 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index d4a8b93648..4d201fcaed 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2152,6 +2152,9 @@ scroll_event(GtkWidget *widget,
FALSE, vim_modifiers);
}
}
+ else if (event->direction == GDK_SCROLL_SMOOTH && display_type == DT_X11)
+ // for X11 we deal with unsmooth events, and so ignore the smooth ones
+ ;
else
#undef DT_X11
#undef DT_WAYLAND