Skip to content

Commit

Permalink
ui/cocoa: Make -full-screen option work on Mac OS X
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
programmingkidx authored and pm215 committed May 19, 2015
1 parent 5d1b2ee commit 43227af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/cocoa.m
Expand Up @@ -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
Expand Down

0 comments on commit 43227af

Please sign in to comment.