tdevdraw: hide dock in full screen mode - 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 3d1382b98a502d0c34d5ba2c462396acc515016e
 (DIR) parent 952a9afae06b4e13b1e0da3e768bbd4bf64b9ec5
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Mon, 13 Jan 2020 23:56:29 -0500
       
       devdraw: hide dock in full screen mode
       
       Unfortunately this hides the dock even if it is on a
       different screen. We need to figure out how to tell.
       But this is more usable than not.
       Probably.
       
       Diffstat:
         M src/cmd/devdraw/mac-screen.m        |      13 +++++++++++++
       
       1 file changed, 13 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m
       t@@ -936,6 +936,19 @@ rpc_setmouse(Client *c, Point p)
                o |= NSApplicationPresentationHideDock | NSApplicationPresentationHideMenuBar;
                return o;
        }
       +
       +- (void)windowWillEnterFullScreen:(NSNotification*)notification {
       +        // TODO: This should only be done if the window
       +        // is on the screen with the dock.
       +        // But how can you tell which window has the dock?
       +        [[NSApplication sharedApplication]
       +                setPresentationOptions:NSApplicationPresentationHideMenuBar | NSApplicationPresentationHideDock];
       +}
       +
       +- (void)windowDidExitFullScreen:(NSNotification*)notification {
       +        [[NSApplication sharedApplication]
       +                setPresentationOptions:NSApplicationPresentationDefault];
       +}
        @end
        
        static uint