[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 8c99628: Fix some more incorrect valuator clearing
From: |
Po Lu |
Subject: |
master 8c99628: Fix some more incorrect valuator clearing |
Date: |
Thu, 23 Dec 2021 20:56:06 -0500 (EST) |
branch: master
commit 8c99628a716f57eef2c181e30075ff136e76a908
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix some more incorrect valuator clearing
* src/xterm.c (handle_one_xevent): Improve detection of stray
ungrab events.
---
src/xterm.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index c5f8264..b8cf637 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10015,7 +10015,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
been changed elsewhere. */
if (enter->detail != XINotifyInferior
&& enter->mode != XINotifyPassiveUngrab
- && enter->mode != XINotifyUngrab && any)
+ /* See the comment under FocusIn in
+ `x_detect_focus_change'. The main relevant culprit
+ these days seems to be XFCE. */
+ && enter->mode != XINotifyUngrab
+ && any && enter->event == FRAME_X_WINDOW (any))
xi_reset_scroll_valuators_for_device_id (dpyinfo,
enter->deviceid);
f = any;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 8c99628: Fix some more incorrect valuator clearing,
Po Lu <=