diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2017-07-03 21:29:17 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2017-07-03 21:29:17 +1000 |
commit | 8d02983b4db5d29320d5a754b9debc64b3f1dd14 (patch) | |
tree | 01a729cb82c6356b2e7a59b18455cfd178fc0a31 /video | |
parent | 8854a2bef61090fdcc6b815112ddd966ef07d771 (diff) | |
download | mpv-8d02983b4db5d29320d5a754b9debc64b3f1dd14.tar.bz2 mpv-8d02983b4db5d29320d5a754b9debc64b3f1dd14.tar.xz |
w32_common: use SWP_NOSENDCHANGING when resizing child
This seems to reduce glitches when resizing a --wid program (or it could
be a placebo.) Since we don't need the WM_WINDOWPOSCHANGING handler in
--wid mode, it should be fine.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/w32_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 0a825900a4..fedd03965c 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1168,7 +1168,7 @@ static void resize_child_win(HWND parent) if (EqualRect(&rm, &rp)) return; SetWindowPos(child, NULL, 0, 0, rp.right, rp.bottom, SWP_ASYNCWINDOWPOS | - SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOOWNERZORDER); + SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOSENDCHANGING); } static LRESULT CALLBACK parent_win_hook(int nCode, WPARAM wParam, LPARAM lParam) |