From d86daaa211bcbc72746d6f18e586d8438c38a498 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 8 Aug 2022 17:28:11 +1000 Subject: [PATCH] Allow frameless window to be miniturisable (#1705) --- v2/internal/frontend/desktop/darwin/WailsContext.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v2/internal/frontend/desktop/darwin/WailsContext.m b/v2/internal/frontend/desktop/darwin/WailsContext.m index a6599b812..fe5731c57 100644 --- a/v2/internal/frontend/desktop/darwin/WailsContext.m +++ b/v2/internal/frontend/desktop/darwin/WailsContext.m @@ -146,8 +146,10 @@ if (!hideTitleBar) { styleMask |= NSWindowStyleMaskTitled; } - styleMask |= NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable; + styleMask |= NSWindowStyleMaskClosable; } + + styleMask |= NSWindowStyleMaskMiniaturizable; if( fullSizeContent || frameless || titlebarAppearsTransparent ) { styleMask |= NSWindowStyleMaskFullSizeContentView;