projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236703c
)
Avoid invalid values showing up in scroll valuators
author
Po Lu
<luangruo@yahoo.com>
Mon, 7 Nov 2022 10:05:54 +0000
(18:05 +0800)
committer
Po 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
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index abe9c7304e886aa0f59ffdb75b7e99fde4bcebce..1f14daa39f9a6abad421b2ce9b0cb86b6e797608 100644
(file)
--- 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;
}
}
}