]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid invalid values showing up in scroll valuators
authorPo Lu <luangruo@yahoo.com>
Mon, 7 Nov 2022 10:05:54 +0000 (18:05 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 7 Nov 2022 10:08:57 +0000 (18:08 +0800)
* src/xterm.c (xi_populate_device_from_info): Reset emacs_value
when invalid_p is cleared.

src/xterm.c

index abe9c7304e886aa0f59ffdb75b7e99fde4bcebce..1f14daa39f9a6abad421b2ce9b0cb86b6e797608 100644 (file)
@@ -5472,7 +5472,9 @@ xi_populate_device_from_info (struct x_display_info *dpyinfo,
          if (xi_device->valuators[c].number == tem->number)
            {
              xi_device->valuators[c].invalid_p = false;
-             xi_device->valuators[c].current_value = tem->current_value;
+             xi_device->valuators[c].current_value
+               = tem->current_value;
+             xi_device->valuators[c].emacs_value = 0.0;
            }
        }
     }