emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 177811ac0c: Fix bug#57476 for Xt builds


From: Po Lu
Subject: master 177811ac0c: Fix bug#57476 for Xt builds
Date: Thu, 1 Sep 2022 09:23:09 -0400 (EDT)

branch: master
commit 177811ac0c0e5e41d4f661e8e5553e46f0019b9a
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix bug#57476 for Xt builds
    
    * src/xterm.c (handle_one_xevent): Add similar event mode check
    to code under USE_X_TOOLKIT conditional.  (bug#57476)
---
 src/xterm.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/xterm.c b/src/xterm.c
index e8c56d68ea..71b84f8174 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -20951,7 +20951,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                 just looks up a top window on Xt builds.  */
 
 #ifdef HAVE_XINPUT2_1
-             if (leave->detail != XINotifyInferior && f)
+             if (leave->detail != XINotifyInferior && f
+                 && leave->mode != XINotifyUngrab
+                 && leave->mode != XINotifyGrab
+                 && leave->mode != XINotifyPassiveUngrab
+                 && leave->mode != XINotifyPassiveGrab)
                xi_reset_scroll_valuators_for_device_id (dpyinfo,
                                                         leave->deviceid, 
false);
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]