diff options
author | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-11-29 11:28:03 +1100 |
---|---|---|
committer | Brendan Zabarauskas <bjzaba@yahoo.com.au> | 2014-11-29 11:28:03 +1100 |
commit | cfe456468882503c232aa91f48c778e8d0caba34 (patch) | |
tree | 8cb5efac605c3baf8ba6f445ba42f907dc683183 /src | |
parent | 960c875618e1c53e2dd81c2647a6a4608d5a28d1 (diff) | |
parent | 3ae835246474a5a0440c17a7b01da23d4d3ee9db (diff) | |
download | glutin-cfe456468882503c232aa91f48c778e8d0caba34.tar.gz glutin-cfe456468882503c232aa91f48c778e8d0caba34.zip |
Merge pull request #149 from DavidPartouche/fix_cocoa_fullscreen
Fixed issue with menu bar showing in fullscreen
Diffstat (limited to 'src')
-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) } } |