]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix initialization of scroll valuator emacs_value
authorPo Lu <luangruo@yahoo.com>
Fri, 4 Nov 2022 00:29:02 +0000 (08:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 4 Nov 2022 00:29:13 +0000 (08:29 +0800)
* src/xterm.c (xi_handle_device_changed): Initialize emacs_value
to 0, not DBL_MIN.  (bug#58980)

src/xterm.c

index 1b666fae7e20130e3b154b894eee3691c0ee138e..71ff69ece4c8dcb0e6a37889d6c2a0ff277b9ac4 100644 (file)
@@ -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;