devdraw: fix fullscreen on Lion
Now, if you full-screen an app running on a secondary screen, it only takes over that monitor. It does not cause the primary screen to disappear. Code by David Jeannot. R=djeannot24 http://codereview.appspot.com/5708046
This commit is contained in:
parent
443d628838
commit
354c6c32f1
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue