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:
Kacper Michajłow 2024-11-03 01:49:59 +01:00
parent 42ff6f92c3
commit b057af0a56
1 changed files with 2 additions and 2 deletions

View File

@ -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);