summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index cbf06a98df..f7dafa2735 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -416,7 +416,8 @@ void vo_mouse_movement(struct vo *vo, int posx, int posy)
if (!vo->opts->enable_mouse_movements)
return;
float p[2] = {posx, posy};
- vo_control(vo, VOCTRL_WINDOW_TO_OSD_COORDS, p);
+ if (vo->driver->caps & VO_CAP_EVIL_OSD)
+ vo_control(vo, VOCTRL_WINDOW_TO_OSD_COORDS, p);
mp_input_set_mouse_pos(vo->input_ctx, p[0], p[1]);
}