diff options
author | Po Lu <luangruo@yahoo.com> | 2022-11-07 18:05:54 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-11-07 18:08:57 +0800 |
commit | 802671493d7c18569dac47ca91a4b7d6e693aff6 (patch) | |
tree | a2e47b9ab1108d758b91cd46c624504df9a2961d /src/xterm.c | |
parent | 236703ca05382c9cdf4ce6a2dd2b3244c20d564d (diff) | |
download | emacs-802671493d7c18569dac47ca91a4b7d6e693aff6.tar.gz |
Avoid invalid values showing up in scroll valuators
* src/xterm.c (xi_populate_device_from_info): Reset emacs_value
when invalid_p is cleared.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index abe9c7304e8..1f14daa39f9 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; } } } |