From 854714efb47d3365c41a84443fa56e7e275bfb4c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 20 Jun 2022 18:13:51 +0800 Subject: [PATCH] Ignore pinch events from the wrong window * src/xterm.c (handle_one_xevent): Use x_window_to_frame to find frames for pinch events. --- src/xterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 12d091c1d92..b5543b873ca 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -21685,7 +21685,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, } #endif - any = x_any_window_to_frame (dpyinfo, pev->event); + any = x_window_to_frame (dpyinfo, pev->event); if (any) { inev.ie.kind = PINCH_EVENT; -- 2.39.2