]> git.eshelyaron.com Git - emacs.git/commitdiff
Ignore pinch events from the wrong window
authorPo Lu <luangruo@yahoo.com>
Mon, 20 Jun 2022 10:13:51 +0000 (18:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 20 Jun 2022 10:13:51 +0000 (18:13 +0800)
* src/xterm.c (handle_one_xevent): Use x_window_to_frame to find
frames for pinch events.

src/xterm.c

index 12d091c1d92e9dc770669a8e1d9e2c6e0c4bc3d3..b5543b873ca957b1bd771c1b99495cd7da912527 100644 (file)
@@ -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;