emacs-diffs
[Top][All Lists]
Advanced

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

master bb0317442b: Fix XI scroll valuator reset on X Toolkit builds


From: Po Lu
Subject: master bb0317442b: Fix XI scroll valuator reset on X Toolkit builds
Date: Thu, 26 May 2022 22:34:17 -0400 (EDT)

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

    Fix XI scroll valuator reset on X Toolkit builds
    
    * src/xterm.c (handle_one_xevent): Reset valuators on XI_Leave
    if leave->event is an edit widget as well.
---
 src/xterm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 5964a8bb48..4f264ab2a8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -17841,6 +17841,16 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                 masks are set on the frame widget's window.  */
              f = x_window_to_frame (dpyinfo, leave->event);
 
+             /* Also do this again here, since the test for `any'
+                above may not have found a frame, as that usually
+                just looks up a top window on Xt builds.  */
+
+#ifdef HAVE_XINPUT2_1
+             if (leave->detail != XINotifyInferior && f)
+               xi_reset_scroll_valuators_for_device_id (dpyinfo,
+                                                        leave->deviceid, 
false);
+#endif
+
              if (!f)
                f = x_top_window_to_frame (dpyinfo, leave->event);
 #endif



reply via email to

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