Received: from eggs.gnu.org ([2001:4830:134:3::10]:33865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yucop-0006O6-LX for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yucoi-0006H8-6H for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:07 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yucoh-0006GF-Vo for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:00 -0400 From: Peter Maydell Date: Tue, 19 May 2015 09:23:47 +0100 Message-Id: <1432023835-2274-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1432023835-2274-1-git-send-email-peter.maydell@linaro.org> References: <1432023835-2274-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac OS X List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Programmingkid This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup, on Mac OS X. Signed-off-by: John Arbuckle Signed-off-by: Peter Maydell --- ui/cocoa.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 351b71f..d1d29bc 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 -- 1.9.1