changeset 34985:743a5c97b0a2 v9.1.0348

patch 9.1.0348: X11 does not ignore smooth scroll event Commit: https://github.com/vim/vim/commit/baedc998b0fe3c29e1e88cc426575306b0f5ea44 Author: lilydjwg <lilydjwg@gmail.com> Date: Thu Apr 18 21:22:57 2024 +0200 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 <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 18 Apr 2024 21:30:02 +0200
parents f468e8b85e3d
children db6202f2c210
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    348,
+/**/
     347,
 /**/
     346,