mirror of https://github.com/mpv-player/mpv
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:
parent
d78c35d360
commit
512f5e2e82
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue