]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#57476 for Xt builds
authorPo Lu <luangruo@yahoo.com>
Thu, 1 Sep 2022 13:22:17 +0000 (21:22 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 1 Sep 2022 13:22:28 +0000 (21:22 +0800)
* src/xterm.c (handle_one_xevent): Add similar event mode check
to code under USE_X_TOOLKIT conditional.  (bug#57476)

src/xterm.c

index e8c56d68ea89db4b7ea964cb6ced7485f64929fb..71b84f817475ae6975187daa27693d1695bc7814 100644 (file)
@@ -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