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: e5159de811
This commit is contained in:
nanahi 2024-11-02 00:54:48 -04:00 committed by Kacper Michajłow
parent d78c35d360
commit 512f5e2e82
1 changed files with 1 additions and 2 deletions

View File

@ -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.