From 27b5ab80ec2785ed0e178f695ec3a5f5fabdbea2 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 27 Jul 2022 16:00:29 +0800 Subject: [PATCH] Fix frame determination for XI touch events * src/xterm.c (handle_one_xevent): Find touchscreen event windows using x_window_to_frame. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 48e9a174fa5..2067e8bb741 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -21826,7 +21826,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (xi_find_touch_point (device, xev->detail)) emacs_abort (); - f = x_any_window_to_frame (dpyinfo, xev->event); + f = x_window_to_frame (dpyinfo, xev->event); #ifdef HAVE_GTK3 menu_bar_p = (f && FRAME_X_OUTPUT (f)->menubar_widget @@ -21924,7 +21924,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, touchpoint->x = xev->event_x; touchpoint->y = xev->event_y; - f = x_any_window_to_frame (dpyinfo, xev->event); + f = x_window_to_frame (dpyinfo, xev->event); if (f && device->direct_p) { @@ -21967,7 +21967,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (unlinked_p) { - f = x_any_window_to_frame (dpyinfo, xev->event); + f = x_window_to_frame (dpyinfo, xev->event); if (f && device->direct_p) { -- 2.39.2