[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3] Makes -full-screen option work on Mac OS X
From: |
Programmingkid |
Subject: |
[Qemu-devel] [PATCH v3] Makes -full-screen option work on Mac OS X |
Date: |
Tue, 20 Jan 2015 14:51:14 -0500 |
This patch makes the -full-screen option actually instruct QEMU to
enter fullscreen at startup, on Mac OS X.
Signed-off-by: John Arbuckle <address@hidden>
---
Eliminated compile warning.
ui/cocoa.m | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index d37c29b..081d4f2 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1120,6 +1120,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.7.5.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH v3] Makes -full-screen option work on Mac OS X,
Programmingkid <=