From 512f5e2e820b7414185c532e776739f1970bcd69 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Sat, 2 Nov 2024 00:54:48 -0400 Subject: [PATCH] video/out/w32_common: always move window when setting state Make sure the window is at the correct position when fullscreen while geometry is set. Fixes: e5159de8118120163689c27f5cbc1ec68c2d27c8 --- video/out/w32_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 677f0963b8..aa76d1f46f 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1174,8 +1174,7 @@ static void update_window_state(struct vo_w32_state *w32) SetWindowPos(w32->window, w32->opts->ontop ? HWND_TOPMOST : HWND_NOTOPMOST, wr.left, wr.top, rect_w(wr), rect_h(wr), - SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOOWNERZORDER | - (!w32->win_force_pos ? SWP_NOMOVE : 0)); + SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOOWNERZORDER); // Unmaximize the window if a size change is requested because SetWindowPos // doesn't change the window maximized state.