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

View File

@@ -106,8 +106,8 @@
self.fNameField.stringValue = name;
self.fNameField.toolTip = name;
//disable fullscreen support
[self.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenNone];
//make window an auxillary view in fullscreen
[self.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
self.fIconView.image = self.torrent.icon;