From 192de232bfe1270421a97c37987f0f19ad66175c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 7 Jun 2022 12:59:37 +0800 Subject: [PATCH] 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. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.2