aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorRainer Müller <raimue@codingfarm.de>2015-09-09 16:08:30 +0200
committerPeter Maydell <peter.maydell@linaro.org>2015-09-18 18:33:02 +0100
commitb12a84ce3c27e42c8f51c436aa196938d5cc2c71 (patch)
tree961ee6202308a0ce5742c01745f8614df7f19d2e /ui
parenta53efe9c47c9a441b307c5cec64d08d9647ab6a4 (diff)
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. Signed-off-by: Rainer Müller <raimue@codingfarm.de> Reviewed-by: Andreas Färber <andreas.faerber@web.de> Message-id: 1441807710-25431-1-git-send-email-raimue@codingfarm.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui')
-rw-r--r--ui/cocoa.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 334e6f6667..c24d9f9194 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -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());
}