From: Po Lu Date: Tue, 7 Jun 2022 04:59:37 +0000 (+0800) Subject: Fix leak of event data on GTK+ 2.x X-Git-Tag: emacs-29.0.90~1910^2~182 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=192de232bfe1270421a97c37987f0f19ad66175c;p=emacs.git Fix leak of event data on GTK+ 2.x * src/xterm.c (handle_one_xevent): Fix goto XI_OTHER for valuator motion events generated on scroll bars. --- diff --git a/src/xterm.c b/src/xterm.c index a11a22ab10c..4dce24104d6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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)