tdevdraw: correctly hide Mac menu bar (#335) - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit b741db607a9033364fdab4151512ffbad2153ac9 (DIR) parent 481b596d9389076d686832e0a3c26fc7b550c532 (HTM) Author: Xiao-Yong <xjin@anl.gov> Date: Mon, 13 Jan 2020 22:33:59 -0600 devdraw: correctly hide Mac menu bar (#335) `window:willUseFullScreenPresentationOptions:` is an instance method of the protocol `NSWindowDelegate`. Diffstat: M src/cmd/devdraw/mac-screen.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- (DIR) diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m t@@ -93,15 +93,6 @@ rpc_shutdown(void) gfx_started(); } -- (NSApplicationPresentationOptions)window:(id)arg - willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions { - NSApplicationPresentationOptions o; - o = proposedOptions; - o &= ~(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar); - o |= NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar; - return o; -} - - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication { return client0 != nil; } t@@ -936,6 +927,15 @@ rpc_setmouse(Client *c, Point p) gfx_keystroke(self.client, Kbs); } } + +- (NSApplicationPresentationOptions)window:(id)arg + willUseFullScreenPresentationOptions:(NSApplicationPresentationOptions)proposedOptions { + NSApplicationPresentationOptions o; + o = proposedOptions; + o &= ~(NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar); + o |= NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar; + return o; +} @end static uint