From: lilydjwg Date: Thu, 18 Apr 2024 19:22:57 +0000 (+0200) Subject: patch 9.1.0348: X11 does not ignore smooth scroll event X-Git-Tag: v9.1.0348^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=baedc998b0fe3c29e1e88cc426575306b0f5ea44;p=thirdparty%2Fvim.git patch 9.1.0348: X11 does not ignore smooth scroll event 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 Signed-off-by: Christian Brabandt --- 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 diff --git a/src/version.c b/src/version.c index 82bb55bf8b..85156acfea 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 348, /**/ 347, /**/