diff options
-rw-r--r-- | src/cmd/devdraw/cocoa-screen.m | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m index 97ddd80c..bf2d0fdc 100644 --- a/src/cmd/devdraw/cocoa-screen.m +++ b/src/cmd/devdraw/cocoa-screen.m @@ -908,7 +908,12 @@ togglefs(void) uint opt, tmp; #if OSX_VERSION >= 100700 - if(useoldfullscreen==0 || win.isnfs){ + NSScreen *s, *s0; + + s = [WIN screen]; + s0 = [[NSScreen screens] objectAtIndex:0]; + + if((s==s0 && useoldfullscreen==0) || win.isnfs) { [WIN toggleFullScreen:nil]; return; } |