[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac OS X |
Date: |
Tue, 19 May 2015 09:23:47 +0100 |
From: Programmingkid <address@hidden>
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>
Signed-off-by: Peter Maydell <address@hidden>
---
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
- [Qemu-devel] [PULL 00/10] cocoa queue, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 10/10] ui/cocoa: Add console items to the View menu, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 09/10] ui/cocoa: Avoid deprecated NSOKButton/NSCancelButton constants, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 05/10] ui/cocoa: Remove compatibility ifdefs for OSX 10.4, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 04/10] ui/cocoa: Drop tests for CGImageCreateWithImageInRect support, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 01/10] ui/cocoa: Fix several full screen issues on Mac OS X, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 06/10] ui/cocoa: openPanelDidEnd returnCode should be NSInteger, not int, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 07/10] ui/cocoa: Declare that QemuCocoaAppController implements NSApplicationDelegate, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 08/10] ui/cocoa: Don't use NSWindow useOptimizedDrawing on OSX 10.10 and up, Peter Maydell, 2015/05/19
- [Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac OS X,
Peter Maydell <=
- [Qemu-devel] [PULL 03/10] Makefile.target: set icon for binary file on Mac OS X, Peter Maydell, 2015/05/19
- Re: [Qemu-devel] [PULL 00/10] cocoa queue, Peter Maydell, 2015/05/19