From 0d5eeb3b76d3f4c0685e0ecf2dbf680a496ebe69 Mon Sep 17 00:00:00 2001 From: ni507 Date: Tue, 7 May 2024 17:39:02 +0200 Subject: [PATCH] fix: full size content view --- Source/SpiderEye.Mac/CocoaWindow.cs | 1 + Source/SpiderEye.Mac/Interop/NSWindowStyleMask.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/SpiderEye.Mac/CocoaWindow.cs b/Source/SpiderEye.Mac/CocoaWindow.cs index 45f7416..7b8bb18 100644 --- a/Source/SpiderEye.Mac/CocoaWindow.cs +++ b/Source/SpiderEye.Mac/CocoaWindow.cs @@ -423,6 +423,7 @@ private UIntPtr GetStyleMask() { var currentStyleMask = (int)ObjC.Call(Handle, "styleMask"); currentStyleMask |= (int)NSWindowStyleMask.Titled; + currentStyleMask |= (int)NSWindowStyleMask.FullSizeContentView; if (canResizeField) { currentStyleMask |= (int)NSWindowStyleMask.Resizable; diff --git a/Source/SpiderEye.Mac/Interop/NSWindowStyleMask.cs b/Source/SpiderEye.Mac/Interop/NSWindowStyleMask.cs index 9dbd2d2..152d511 100644 --- a/Source/SpiderEye.Mac/Interop/NSWindowStyleMask.cs +++ b/Source/SpiderEye.Mac/Interop/NSWindowStyleMask.cs @@ -9,5 +9,6 @@ internal enum NSWindowStyleMask Closable = 1 << 1, Miniaturizable = 1 << 2, Resizable = 1 << 3, + FullSizeContentView = 1 << 15, } }