summaryrefslogtreecommitdiff
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-11-07 18:05:54 +0800
committerPo Lu <luangruo@yahoo.com>2022-11-07 18:08:57 +0800
commit802671493d7c18569dac47ca91a4b7d6e693aff6 (patch)
treea2e47b9ab1108d758b91cd46c624504df9a2961d /src/xterm.c
parent236703ca05382c9cdf4ce6a2dd2b3244c20d564d (diff)
downloademacs-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.c4
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;
}
}
}