summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-20 23:44:33 +0200
committerwm4 <wm4@nowhere>2013-06-29 22:58:14 +0200
commit1099e0fc998763cb9c16027710720ce198a91258 (patch)
tree13d5675b04b3712ab06ebe47148e4a74aadd9467
parent9ff6b472bd00c724eb54bbbd43a06509352c344d (diff)
downloadmpv-1099e0fc998763cb9c16027710720ce198a91258.tar.bz2
mpv-1099e0fc998763cb9c16027710720ce198a91258.tar.xz
w32_common: prevent that window dragging and mouse input interfere
-rw-r--r--video/out/w32_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index 579b01141c..783bd7fb06 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -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();