aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorDavid Partouche <david@manateedev.com>2014-11-28 19:13:58 +0100
committerDavid Partouche <david@manateedev.com>2014-11-28 19:13:58 +0100
commit3ae835246474a5a0440c17a7b01da23d4d3ee9db (patch)
tree8cb5efac605c3baf8ba6f445ba42f907dc683183 /src/osx
parent960c875618e1c53e2dd81c2647a6a4608d5a28d1 (diff)
downloadglutin-3ae835246474a5a0440c17a7b01da23d4d3ee9db.tar.gz
glutin-3ae835246474a5a0440c17a7b01da23d4d3ee9db.zip
Fixed issue with menu bar showing in fullscreen
Diffstat (limited to 'src/osx')
-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)
}
}