aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/mod.rs')
-rw-r--r--src/osx/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index 0cb4553..a8cc3ac 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -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)
}
}