w32_common: prevent that window dragging and mouse input interfere

This commit is contained in:
wm4 2013-06-20 23:44:33 +02:00
parent 9ff6b472bd
commit 1099e0fc99
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
int y = GET_Y_LPARAM(lParam); int y = GET_Y_LPARAM(lParam);
mouse_button |= mod_state(vo); mouse_button |= mod_state(vo);
if (mouse_button == (MP_MOUSE_BTN0 | MP_KEY_STATE_DOWN) && 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 // Window dragging hack
ReleaseCapture(); ReleaseCapture();