From: Po Lu Date: Mon, 20 Jun 2022 10:13:51 +0000 (+0800) Subject: Ignore pinch events from the wrong window X-Git-Tag: emacs-29.0.90~1447^2~1593 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=854714efb47d3365c41a84443fa56e7e275bfb4c;p=emacs.git Ignore pinch events from the wrong window * src/xterm.c (handle_one_xevent): Use x_window_to_frame to find frames for pinch events. --- 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;