summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index a63350900a..d6988abc47 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -931,6 +931,8 @@ int vo_x11_check_events(struct vo *vo)
x11->win_drag_button1_down = false;
break;
case LeaveNotify:
+ if (Event.xcrossing.mode != NotifyNormal)
+ break;
x11->win_drag_button1_down = false;
mp_input_put_key(vo->input_ctx, MP_KEY_MOUSE_LEAVE);
break;