Merge pull request #149 from DavidPartouche/fix_cocoa_fullscreen
Fixed issue with menu bar showing in fullscreen
This commit is contained in:
commit
cfe4564688
1 changed files with 3 additions and 1 deletions
|
|
@ -184,11 +184,13 @@ impl Window {
|
||||||
} else {
|
} else {
|
||||||
let title = NSString::alloc(nil).init_str(title);
|
let title = NSString::alloc(nil).init_str(title);
|
||||||
window.setTitle_(title);
|
window.setTitle_(title);
|
||||||
window.center();
|
|
||||||
window.setAcceptsMouseMovedEvents_(true);
|
window.setAcceptsMouseMovedEvents_(true);
|
||||||
if monitor.is_some() {
|
if monitor.is_some() {
|
||||||
window.setLevel_(NSMainMenuWindowLevel as i64 + 1);
|
window.setLevel_(NSMainMenuWindowLevel as i64 + 1);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
window.center();
|
||||||
|
}
|
||||||
Some(window)
|
Some(window)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue