aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorEli Zaretskii2021-12-01 15:36:55 +0200
committerEli Zaretskii2021-12-01 15:36:55 +0200
commitbab29694047d060bb58ff88e1a4d2cc7ef05df2a (patch)
tree25dffd70f392ccace1007b53b491707ad44dda1a /src/keyboard.c
parentc13b49a110ffd23975e98c053746054492a3908a (diff)
downloademacs-bab29694047d060bb58ff88e1a4d2cc7ef05df2a.tar.gz
emacs-bab29694047d060bb58ff88e1a4d2cc7ef05df2a.zip
Support precision mouse scrolling on MS-Windows
* src/w32fns.c (w32_wnd_proc): Pass the WM_SETTINGCHANGE message to the Lisp thread. * src/w32term.c (w32_construct_mouse_wheel): Support mice with precision scrolling wheel. (w32_get_mouse_wheel_vertical_delta): New function. (w32_read_socket): When the WM_SETTINGCHANGE is received, call 'w32_get_mouse_wheel_vertical_delta'. (w32_initialize): Call 'w32_get_mouse_wheel_vertical_delta' at startup. * src/nsterm.m (syms_of_nsterm): * src/haikuterm.c (syms_of_haikuterm): * src/xterm.c (syms_of_xterm): Remove window-system specific variables for coalescing mwheel events. * src/keyboard.c (syms_of_keyboard) <mwheel-coalesce-scroll-events>: New variable, to replace the above platform-specific ones. * doc/lispref/commands.texi (Misc Events): Improve wording of the description of mouse-wheel events.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c98175aea0d..b3e6e5029be 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -12571,6 +12571,12 @@ other similar functions ignore input events in `while-no-input-ignore-events'.
12571This flag may eventually be removed once this behavior is deemed safe. */); 12571This flag may eventually be removed once this behavior is deemed safe. */);
12572 input_pending_p_filter_events = true; 12572 input_pending_p_filter_events = true;
12573 12573
12574 DEFVAR_BOOL ("mwheel-coalesce-scroll-events", mwheel_coalesce_scroll_events,
12575 doc: /* Non-nil means send a wheel event only for scrolling at least one screen line.
12576Otherwise, a wheel event will be sent every time the mouse wheel is
12577moved. */);
12578 mwheel_coalesce_scroll_events = true;
12579
12574 pdumper_do_now_and_after_load (syms_of_keyboard_for_pdumper); 12580 pdumper_do_now_and_after_load (syms_of_keyboard_for_pdumper);
12575} 12581}
12576 12582