Mercurial > vim
comparison src/gui_gtk_x11.c @ 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 | bce11c34ef41 |
children | 8f04cf65ecff |
comparison
equal
deleted
inserted
replaced
34984:f468e8b85e3d | 34985:743a5c97b0a2 |
---|---|
2150 acc_y = MIN(0.0, acc_y + 1.0); | 2150 acc_y = MIN(0.0, acc_y + 1.0); |
2151 gui_send_mouse_event(MOUSE_4, (int)event->x, (int)event->y, | 2151 gui_send_mouse_event(MOUSE_4, (int)event->x, (int)event->y, |
2152 FALSE, vim_modifiers); | 2152 FALSE, vim_modifiers); |
2153 } | 2153 } |
2154 } | 2154 } |
2155 else if (event->direction == GDK_SCROLL_SMOOTH && display_type == DT_X11) | |
2156 // for X11 we deal with unsmooth events, and so ignore the smooth ones | |
2157 ; | |
2155 else | 2158 else |
2156 #undef DT_X11 | 2159 #undef DT_X11 |
2157 #undef DT_WAYLAND | 2160 #undef DT_WAYLAND |
2158 #endif | 2161 #endif |
2159 gui_send_mouse_event(button, (int)event->x, (int)event->y, | 2162 gui_send_mouse_event(button, (int)event->x, (int)event->y, |