1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-19 18:05:21 +00:00

win32: set WS_SYSMENU style always

Fixes missing icon when initial window is created without caption.

Fixes: #12472
This commit is contained in:
Kacper Michajłow 2023-10-01 12:50:19 +02:00 committed by Dudemanguy
parent e9690727a0
commit 172d9be300

View File

@ -813,8 +813,9 @@ static DWORD update_style(struct vo_w32_state *w32, DWORD style)
{
const DWORD NO_FRAME = WS_OVERLAPPED | WS_MINIMIZEBOX;
const DWORD FRAME = WS_OVERLAPPEDWINDOW;
const DWORD FULLSCREEN = NO_FRAME | WS_SYSMENU;
const DWORD FULLSCREEN = NO_FRAME;
style &= ~(NO_FRAME | FRAME | FULLSCREEN);
style |= WS_SYSMENU;
if (w32->current_fs) {
style |= FULLSCREEN;
} else {