summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/x11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index d92ffcdea4..da8d878b6b 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -949,8 +949,8 @@ int vo_x11_check_events(struct vo *vo)
!mp_input_test_dragging(vo->input_ctx, Event.xmotion.x,
Event.xmotion.y))
{
+ mp_input_put_key(vo->input_ctx, MP_INPUT_RELEASE_ALL);
XUngrabPointer(x11->display, CurrentTime);
- x11->win_drag_button1_down = false;
XEvent xev;
xev.xclient.type = ClientMessage;
@@ -971,6 +971,7 @@ int vo_x11_check_events(struct vo *vo)
} else {
vo_mouse_movement(vo, Event.xmotion.x, Event.xmotion.y);
}
+ x11->win_drag_button1_down = false;
break;
case LeaveNotify:
x11->win_drag_button1_down = false;