0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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>
This commit is contained in:
lilydjwg
2024-04-18 21:22:57 +02:00
committed by Christian Brabandt
parent 133ed2a592
commit baedc998b0
2 changed files with 5 additions and 0 deletions

View File

@@ -2152,6 +2152,9 @@ scroll_event(GtkWidget *widget,
FALSE, vim_modifiers); 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 else
#undef DT_X11 #undef DT_X11
#undef DT_WAYLAND #undef DT_WAYLAND

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
348,
/**/ /**/
347, 347,
/**/ /**/