summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-11-04 08:29:02 +0800
committerPo Lu <luangruo@yahoo.com>2022-11-04 08:29:13 +0800
commit8e7066babeac122c289b5b22c5a372bb67ddd8ef (patch)
tree3cb534f0aaf4d2ad54ade13e03d31e16076734fd /src/xterm.c
parentd2a9dae40057ff16683d9c5f30a3b04500ebc4cf (diff)
downloademacs-8e7066babeac122c289b5b22c5a372bb67ddd8ef.tar.gz
emacs-8e7066babeac122c289b5b22c5a372bb67ddd8ef.tar.bz2
emacs-8e7066babeac122c289b5b22c5a372bb67ddd8ef.zip
Fix initialization of scroll valuator emacs_value
* src/xterm.c (xi_handle_device_changed): Initialize emacs_value to 0, not DBL_MIN. (bug#58980)
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 1b666fae7e2..71ff69ece4c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -13083,7 +13083,7 @@ xi_handle_device_changed (struct x_display_info *dpyinfo,
valuator->horizontal = (scroll->scroll_type
== XIScrollTypeHorizontal);
valuator->invalid_p = true;
- valuator->emacs_value = DBL_MIN;
+ valuator->emacs_value = 0;
valuator->increment = scroll->increment;
valuator->number = scroll->number;
break;