From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZg3Y-0005EZ-U7 for qemu-devel@nongnu.org; Wed, 09 Sep 2015 10:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZg3V-0005gD-0C for qemu-devel@nongnu.org; Wed, 09 Sep 2015 10:09:00 -0400 Received: from codingfarm.de ([79.140.41.77]:32850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZg3U-0005g0-Qw for qemu-devel@nongnu.org; Wed, 09 Sep 2015 10:08:56 -0400 From: =?UTF-8?q?Rainer=20M=C3=BCller?= Date: Wed, 9 Sep 2015 16:08:30 +0200 Message-Id: <1441807710-25431-1-git-send-email-raimue@codingfarm.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] cocoa: Suppress Cocoa window with -display List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Gerd Hoffmann , =?UTF-8?q?Rainer=20M=C3=BCller?= 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=C3=BCller --- ui/cocoa.m | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 334e6f6..c24d9f9 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()); } --=20 2.5.0