[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 802671493d: Avoid invalid values showing up in scroll valuators
From: |
Po Lu |
Subject: |
master 802671493d: Avoid invalid values showing up in scroll valuators |
Date: |
Mon, 7 Nov 2022 05:09:08 -0500 (EST) |
branch: master
commit 802671493d7c18569dac47ca91a4b7d6e693aff6
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Avoid invalid values showing up in scroll valuators
* src/xterm.c (xi_populate_device_from_info): Reset emacs_value
when invalid_p is cleared.
---
src/xterm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index abe9c7304e..1f14daa39f 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;
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 802671493d: Avoid invalid values showing up in scroll valuators,
Po Lu <=