]> git.eshelyaron.com Git - emacs.git/commitdiff
Use correct coordinates when translating XI2 crossing events
authorPo Lu <luangruo@yahoo.com>
Wed, 12 Jan 2022 12:13:28 +0000 (20:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 12 Jan 2022 12:13:28 +0000 (20:13 +0800)
* src/xwidget.c (xwidget_motion_or_crossing): Use displaced
position instead of event position.

src/xwidget.c

index 7d6d256a191e5f504d5f184717c71233c2a47ca1..45879b15cbeaebbb373c8ab0a7c4398782b38550 100644 (file)
@@ -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;