]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix frame determination for XI touch events
authorPo Lu <luangruo@yahoo.com>
Wed, 27 Jul 2022 08:00:29 +0000 (16:00 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 27 Jul 2022 08:00:29 +0000 (16:00 +0800)
* src/xterm.c (handle_one_xevent): Find touchscreen event
windows using x_window_to_frame.

src/xterm.c

index 48e9a174fa518e1f86ef733489465381a6f0815b..2067e8bb74103fc682a23291d673e9d0c847f25a 100644 (file)
@@ -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)
                    {