summaryrefslogtreecommitdiff
path: root/src/gtkutil.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-03-01 18:38:08 +0800
committerPo Lu <luangruo@yahoo.com>2022-03-01 18:38:08 +0800
commitad0fb40ae6921a265c6d21ed542cf6144eee0c51 (patch)
tree53ac7e985e18ef51128e690f7cf9be1fc93c5333 /src/gtkutil.h
parent3447f365b13e0814916e44192063734eae7d3e19 (diff)
downloademacs-ad0fb40ae6921a265c6d21ed542cf6144eee0c51.tar.gz
emacs-ad0fb40ae6921a265c6d21ed542cf6144eee0c51.tar.bz2
emacs-ad0fb40ae6921a265c6d21ed542cf6144eee0c51.zip
Fix reporting of wheel events on top of GTK scroll bars
* src/gtkutil.c (xg_update_scrollbar_pos): (xg_update_horizontal_scrollbar_pos): Stop ensuring the window is native. (xg_event_is_for_scrollbar): New variable `for_valuator'. All callers changed. * src/gtkutil.h: Update prototypes. * src/xterm.c (handle_one_xevent): Drop all valuator change events destined for scroll bars.
Diffstat (limited to 'src/gtkutil.h')
-rw-r--r--src/gtkutil.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h
index b74244d84d0..63ecac07907 100644
--- a/src/gtkutil.h
+++ b/src/gtkutil.h
@@ -148,7 +148,8 @@ extern void xg_set_toolkit_horizontal_scroll_bar_thumb (struct scroll_bar *bar,
int portion,
int position,
int whole);
-extern bool xg_event_is_for_scrollbar (struct frame *, const EVENT *);
+extern bool xg_event_is_for_scrollbar (struct frame *, const EVENT *,
+ bool for_valuator);
extern int xg_get_default_scrollbar_width (struct frame *f);
extern int xg_get_default_scrollbar_height (struct frame *f);