diff options
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index f43c5c03a8..539d66e641 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -835,7 +835,8 @@ int vo_x11_check_events(struct vo *vo) }; x11_send_ewmh_msg(x11, "_NET_WM_MOVERESIZE", params); } else { - vo_mouse_movement(vo, Event.xmotion.x, Event.xmotion.y); + mp_input_set_mouse_pos(vo->input_ctx, Event.xmotion.x, + Event.xmotion.y); } x11->win_drag_button1_down = false; break; @@ -1560,7 +1561,7 @@ static void vo_x11_selectinput_witherr(struct vo *vo, Window w, long event_mask) { - if (!vo->opts->enable_mouse_movements) + if (!mp_input_mouse_enabled(vo->input_ctx)) event_mask &= ~(PointerMotionMask | ButtonPressMask | ButtonReleaseMask); XSelectInput(display, w, NoEventMask); |