re-add macOS Fullscreen support (#3261)

* re-add macOS Fullscreen support

re added Full Screen support for macOS. Also refactored window methods in Controller.mm and moved to their own category - ControllerWindowMethods.mm

This has currently only been tested on macOS Monterey, and should be good on earlier versions - but perhaps needs testing on earlier versions of macOS.

fixes #3231 #3234
This commit is contained in:
SweetPPro
2022-06-13 02:54:52 +02:00
committed by GitHub
parent da74fd21cc
commit c3cd9cffad
13 changed files with 401 additions and 444 deletions
+3
View File
@@ -202,6 +202,9 @@
self.window.restorationClass = [self class];
//make window an auxillary view in fullscreen
[self.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
NSToolbar* toolbar = [[NSToolbar alloc] initWithIdentifier:@"Preferences Toolbar"];
toolbar.delegate = self;
toolbar.allowsUserCustomization = NO;