aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-12-24 09:20:44 +0800
committerPo Lu2021-12-24 09:20:44 +0800
commit20647467bef593c9dd3b86efdc6f21ddfd1e7f75 (patch)
tree34f1c5c65d3c3f4a3816062e2dcd80d5ba0c4fb7 /src
parent2fa7feca336dd16c57ffef072e0f0da6fffe4c5f (diff)
downloademacs-20647467bef593c9dd3b86efdc6f21ddfd1e7f75.tar.gz
emacs-20647467bef593c9dd3b86efdc6f21ddfd1e7f75.zip
Drop scrollbar motion events when valuators are found
* src/xterm.c (handle_one_xevent): Drop XI_Motion if it's on top of a scroll bar and a valuator is found.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 070ee7d671e..c5f826433f1 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10230,7 +10230,13 @@ handle_one_xevent (struct x_display_info *dpyinfo,
10230 } 10230 }
10231#endif 10231#endif
10232 if (found_valuator) 10232 if (found_valuator)
10233 goto XI_OTHER; 10233 {
10234#ifdef USE_GTK
10235 if (f && xg_event_is_for_scrollbar (f, event))
10236 *finish = X_EVENT_DROP;
10237#endif
10238 goto XI_OTHER;
10239 }
10234 10240
10235 ev.x = lrint (xev->event_x); 10241 ev.x = lrint (xev->event_x);
10236 ev.y = lrint (xev->event_y); 10242 ev.y = lrint (xev->event_y);