Ignore pinch events from the wrong window

* src/xterm.c (handle_one_xevent): Use x_window_to_frame to find
frames for pinch events.
This commit is contained in:
Po Lu 2022-06-20 18:13:51 +08:00
parent c1453cd6f6
commit 854714efb4

View 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;