From: Po Lu Date: Fri, 4 Nov 2022 00:29:02 +0000 (+0800) Subject: Fix initialization of scroll valuator emacs_value X-Git-Tag: emacs-29.0.90~1616^2~328 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8e7066babeac122c289b5b22c5a372bb67ddd8ef;p=emacs.git Fix initialization of scroll valuator emacs_value * src/xterm.c (xi_handle_device_changed): Initialize emacs_value to 0, not DBL_MIN. (bug#58980) --- 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;