From 172d9be3005c6a85f4f139f1dedccefe26ea8d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sun, 1 Oct 2023 12:50:19 +0200 Subject: win32: set WS_SYSMENU style always Fixes missing icon when initial window is created without caption. Fixes: #12472 --- video/out/w32_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 0eafbcc4ae..8db3e35c34 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -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 { -- cgit v1.2.3