cocoa: Suppress Cocoa window with -display
PATCH 1/1 cocoa: Suppress Cocoa window with -display
Do not open a Cocoa window when another display is selected that will be initialized later. The Cocoa display cannot be selected with -display, so there is no need to check its argument.
--- ui/cocoa.m | 1 + 1 file changed, 1 insertion(+)
ui/cocoa.m +1 -0
@@ -1148,6 +1148,7 @@ int main (int argc, const char * argv[]) { !strcmp(opt, "-nographic") || !strcmp(opt, "-version") || !strcmp(opt, "-curses") || + !strcmp(opt, "-display") || !strcmp(opt, "-qtest")) { return qemu_main(gArgc, gArgv, *_NSGetEnviron()); }
Signature · 1 line
2.5.0
Am 09.09.2015 um 16:08 schrieb Rainer Müller:
Quoted 5 lines
Do not open a Cocoa window when another display is selected that will be initialized later. The Cocoa display cannot be selected with -display, so there is no need to check its argument.
Signed-off-by Rainer Müller <[email protected]>
Makes sense,
Thanks,
Andreas
Peter Maydell
AppliedQuoted 10 lines · Andreas Färber
Am 09.09.2015 um 16:08 schrieb Rainer Müller:
Quoted 5 lines
Do not open a Cocoa window when another display is selected that will be initialized later. The Cocoa display cannot be selected with -display, so there is no need to check its argument.
Signed-off-by Rainer Müller <[email protected]>Makes sense,
Reviewed-by Andreas Färber <[email protected]>
Applied to master.
thanks
-- PMM