[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 27b5ab80ec: Fix frame determination for XI touch events
From: |
Po Lu |
Subject: |
master 27b5ab80ec: Fix frame determination for XI touch events |
Date: |
Wed, 27 Jul 2022 04:00:51 -0400 (EDT) |
branch: master
commit 27b5ab80ec2785ed0e178f695ec3a5f5fabdbea2
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 48e9a174fa..2067e8bb74 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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 27b5ab80ec: Fix frame determination for XI touch events,
Po Lu <=