mirror of https://github.com/mpv-player/mpv
w32_common: prevent that window dragging and mouse input interfere
This commit is contained in:
parent
9ff6b472bd
commit
1099e0fc99
|
@ -258,7 +258,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
|
|||
int y = GET_Y_LPARAM(lParam);
|
||||
mouse_button |= mod_state(vo);
|
||||
if (mouse_button == (MP_MOUSE_BTN0 | MP_KEY_STATE_DOWN) &&
|
||||
!vo->opts->fs)
|
||||
!vo->opts->fs && !mp_input_test_dragging(vo->input_ctx, x, y))
|
||||
{
|
||||
// Window dragging hack
|
||||
ReleaseCapture();
|
||||
|
|
Loading…
Reference in New Issue