From: Po Lu Date: Wed, 27 Jul 2022 08:00:29 +0000 (+0800) Subject: Fix frame determination for XI touch events X-Git-Tag: emacs-29.0.90~1447^2~733 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=27b5ab80ec2785ed0e178f695ec3a5f5fabdbea2;p=emacs.git Fix frame determination for XI touch events * src/xterm.c (handle_one_xevent): Find touchscreen event windows using x_window_to_frame. --- 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) {