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