]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix leak of event data on GTK+ 2.x
authorPo Lu <luangruo@yahoo.com>
Tue, 7 Jun 2022 04:59:37 +0000 (12:59 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 7 Jun 2022 04:59:37 +0000 (12:59 +0800)
* src/xterm.c (handle_one_xevent): Fix goto XI_OTHER for
valuator motion events generated on scroll bars.

src/xterm.c

index a11a22ab10c60f94d80abb1463c8c19ca0b37f84..4dce24104d635db086de9603e1bf37dc41da192a 100644 (file)
@@ -18735,12 +18735,12 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                         So instead of that, just ignore XI wheel
                         events which land on a scroll bar.
 
-                       Here we assume anything which isn't the edit
-                       widget window is a scroll bar.  */
+                        Here we assume anything which isn't the edit
+                        widget window is a scroll bar.  */
 
                      if (xev->child != None
                          && xev->child != FRAME_X_WINDOW (f))
-                       goto OTHER;
+                       goto XI_OTHER;
 #endif
 
                      if (fabs (total_x) > 0 || fabs (total_y) > 0)