diff options
| author | Programmingkid | 2015-05-19 10:11:17 +0200 |
|---|---|---|
| committer | Peter Maydell | 2015-05-19 10:11:17 +0200 |
| commit | 43227af88a36faed50cedb0c7cef71a49c0be9d2 (patch) | |
| tree | f623c02e93955192edb581c766c81712efa1e1c2 | |
| parent | ui/cocoa: Fix several full screen issues on Mac OS X (diff) | |
| download | qemu-43227af88a36faed50cedb0c7cef71a49c0be9d2.tar.gz qemu-43227af88a36faed50cedb0c7cef71a49c0be9d2.tar.xz qemu-43227af88a36faed50cedb0c7cef71a49c0be9d2.zip | |
ui/cocoa: Make -full-screen option work on Mac OS X
This patch makes the -full-screen option actually instruct QEMU to
enter fullscreen at startup, on Mac OS X.
Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
| -rw-r--r-- | ui/cocoa.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 351b71ffad..d1d29bc304 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1161,6 +1161,12 @@ void cocoa_display_init(DisplayState *ds, int full_screen) { COCOA_DEBUG("qemu_cocoa: cocoa_display_init\n"); + /* if fullscreen mode is to be used */ + if (full_screen == true) { + [NSApp activateIgnoringOtherApps: YES]; + [(QemuCocoaAppController *)[[NSApplication sharedApplication] delegate] toggleFullScreen: nil]; + } + dcl = g_malloc0(sizeof(DisplayChangeListener)); // register vga output callbacks |
