emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 492bf1e06e: Use correct coordinates when translating XI2 crossing


From: Po Lu
Subject: master 492bf1e06e: Use correct coordinates when translating XI2 crossing events
Date: Wed, 12 Jan 2022 07:14:57 -0500 (EST)

branch: master
commit 492bf1e06edb4324a643ccb15dd6062762145f17
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Use correct coordinates when translating XI2 crossing events
    
    * src/xwidget.c (xwidget_motion_or_crossing): Use displaced
    position instead of event position.
---
 src/xwidget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xwidget.c b/src/xwidget.c
index 7d6d256a19..45879b15cb 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -1447,8 +1447,8 @@ xwidget_motion_or_crossing (struct xwidget_view *view, 
const XEvent *event)
 #ifdef HAVE_XINPUT2
   else if (event->type == GenericEvent)
     {
-      xg_event->crossing.x = (gdouble) xev->event_x;
-      xg_event->crossing.y = (gdouble) xev->event_y;
+      xg_event->crossing.x = x;
+      xg_event->crossing.y = y;
       xg_event->crossing.x_root = (gdouble) xev->root_x;
       xg_event->crossing.y_root = (gdouble) xev->root_y;
       xg_event->crossing.time = xev->time;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]