Fixed issue with menu bar showing in fullscreen

This commit is contained in:
David Partouche 2014-11-28 19:13:58 +01:00
parent 960c875618
commit 3ae8352464

View file

@ -184,11 +184,13 @@ impl Window {
} else {
let title = NSString::alloc(nil).init_str(title);
window.setTitle_(title);
window.center();
window.setAcceptsMouseMovedEvents_(true);
if monitor.is_some() {
window.setLevel_(NSMainMenuWindowLevel as i64 + 1);
}
else {
window.center();
}
Some(window)
}
}