summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:10:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 02:10:58 +0000
commitbee19c22d569e54513a9c591441c7f411811dc81 (patch)
treeb990d2df9fddb8194bfe49e9205005a0d952bc1f /src/gui_gtk_x11.c
parentAdding upstream version 2:9.1.0199. (diff)
downloadvim-97c93a6e6cafbb0d7a9eb94a18a7cadeb8e23a9f.tar.xz
vim-97c93a6e6cafbb0d7a9eb94a18a7cadeb8e23a9f.zip
Adding upstream version 2:9.1.0374.upstream/2%9.1.0374
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.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 d4a8b93..4d201fc 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