]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix drag on xwidget motion events
authorPo Lu <luangruo@yahoo.com>
Fri, 5 Nov 2021 02:31:27 +0000 (10:31 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:40 +0000 (02:59 +0100)
* src/xwidget.c (xwidget_motion_or_crossing): Set state.

src/xwidget.c

index 067ff11002c70ec1241df660b5a36ec5b1f0f878..42b1b85cb8bda9b9832d81c0d9b1057d6b30ffe6 100644 (file)
@@ -449,6 +449,7 @@ xwidget_motion_or_crossing (struct xwidget_view *view, const XEvent *event)
       xg_event->motion.x_root = event->xmotion.x_root;
       xg_event->motion.y_root = event->xmotion.y_root;
       xg_event->motion.time = event->xmotion.time;
+      xg_event->motion.state = event->xmotion.state;
       xg_event->motion.device = find_suitable_pointer (view->frame);
     }
   else