From 49f105cd27ecb7afd58d57a2df2ef6ae6f2e1765 Mon Sep 17 00:00:00 2001 From: Dmitry Zhlobo Date: Sun, 8 Dec 2024 16:04:51 +0100 Subject: [PATCH] macos: make non-native fullscreen windows not resizeable --- macos/Sources/Helpers/Fullscreen.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macos/Sources/Helpers/Fullscreen.swift b/macos/Sources/Helpers/Fullscreen.swift index bb3859e07..56912a28a 100644 --- a/macos/Sources/Helpers/Fullscreen.swift +++ b/macos/Sources/Helpers/Fullscreen.swift @@ -198,6 +198,10 @@ class NonNativeFullscreen: FullscreenBase, FullscreenStyle { // Being untitled let's our content take up the full frame. window.styleMask.remove(.titled) + // We dont' want the non-native fullscreen window to be resizable + // from the edges. + window.styleMask.remove(.resizable) + // Focus window window.makeKeyAndOrderFront(nil)