mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Fixed issue with menu bar showing in fullscreen
This commit is contained in:
parent
960c875618
commit
3ae8352464
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue