From 32b9df6d215bd1fc4cb14163761cd4543262aa48 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 5 Nov 2021 10:31:27 +0800 Subject: [PATCH] Fix drag on xwidget motion events * src/xwidget.c (xwidget_motion_or_crossing): Set state. --- src/xwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xwidget.c b/src/xwidget.c index 067ff11002c..42b1b85cb8b 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -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 -- 2.39.5