From 3ae835246474a5a0440c17a7b01da23d4d3ee9db Mon Sep 17 00:00:00 2001 From: David Partouche Date: Fri, 28 Nov 2014 19:13:58 +0100 Subject: [PATCH] Fixed issue with menu bar showing in fullscreen --- src/osx/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) } }