diff options
author | David Partouche <david@manateedev.com> | 2014-11-28 19:13:58 +0100 |
---|---|---|
committer | David Partouche <david@manateedev.com> | 2014-11-28 19:13:58 +0100 |
commit | 3ae835246474a5a0440c17a7b01da23d4d3ee9db (patch) | |
tree | 8cb5efac605c3baf8ba6f445ba42f907dc683183 | |
parent | 960c875618e1c53e2dd81c2647a6a4608d5a28d1 (diff) | |
download | glutin-3ae835246474a5a0440c17a7b01da23d4d3ee9db.tar.gz glutin-3ae835246474a5a0440c17a7b01da23d4d3ee9db.zip |
Fixed issue with menu bar showing in fullscreen
-rw-r--r-- | src/osx/mod.rs | 4 |
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) } } |