Skip to contentSkip to conversation

cocoa: Suppress Cocoa window with -display

PATCH Applied Rainer Müller 3 participants 3 messages Sep 9, 2015 – Sep 18, 2015

lore
Share & tools
lore
#0 lore raw

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
index 334e6f6..c24d9f9 100644
@@ -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
#2 lore raw
Quoted 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.

Makes sense,

Applied to master.

thanks
-- PMM