diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 0cb45534..a8cc3acf 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) } }