mirror of https://github.com/mpv-player/mpv
w32_common: update window style after changing maximized state
Maximized state is not allowed without WS_OVERLAPPEDWINDOW style and doesn't stick. Set the style after. Fixes: #15093
This commit is contained in:
parent
42ff6f92c3
commit
b057af0a56
|
@ -1111,8 +1111,6 @@ static void update_maximized_state(struct vo_w32_state *w32, bool leaving_fullsc
|
|||
if (w32->parent)
|
||||
return;
|
||||
|
||||
update_window_style(w32);
|
||||
|
||||
// Apply the maximized state on leaving fullscreen.
|
||||
if (w32->current_fs && !leaving_fullscreen)
|
||||
return;
|
||||
|
@ -1142,6 +1140,8 @@ static void update_maximized_state(struct vo_w32_state *w32, bool leaving_fullsc
|
|||
}
|
||||
}
|
||||
|
||||
update_window_style(w32);
|
||||
|
||||
if (toggle && !w32->current_fs && !w32->opts->window_maximized) {
|
||||
w32->windowrc = w32->prev_windowrc;
|
||||
update_window_state(w32);
|
||||
|
|
Loading…
Reference in New Issue