From patchwork Tue May 19 08:23:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 48737 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4B97421411 for ; Tue, 19 May 2015 08:29:22 +0000 (UTC) Received: by wivs14 with SMTP id s14sf4396134wiv.1 for ; Tue, 19 May 2015 01:29:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Sa7zuf3JgnRiZd6qazbekV2MB50l1I+xK2LlUXO+TcY=; b=cxyAsP+h0PARAFnYv9MGOBX/jrzVvLxPrnGxVMHlLlLZCogGbDePgzj3STWN4F0z/e rBGrLGmyKkAD9uGSyNMFvLo9lTJyihF+yzVRUQWLvplF/CQ9iNFXGMy/TaYHntf+3rQL aq0+ELsTjuYSI++xGRP9ZssMOJB79HqmS2NozLIaVxs7rojj3VwNF2zDWmg3bXpWAB4w 2VtNvH5lLKHN5FURR0Llg9LQyenE/sjv/odB+Zz9sveTCNhtU+SBMHMuZtrm9H8tG9kd FcddO18lJY1ncHi1UN/lfLxcjACRdVBMRkyI2BwucDiIIkxGjCftz7+IAFtfcfI0jPm7 Hr/g== X-Gm-Message-State: ALoCoQnaRHwtptAFf3apHPFwq6tEW1l/k8y9pad6KV7WvbCUCu1p+0lUIC6uaeuHgIaxDgOKl8Gt X-Received: by 10.180.106.136 with SMTP id gu8mr13192560wib.6.1432024161586; Tue, 19 May 2015 01:29:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.100 with SMTP id j4ls25468lah.92.gmail; Tue, 19 May 2015 01:29:21 -0700 (PDT) X-Received: by 10.112.72.104 with SMTP id c8mr21078301lbv.77.1432024161357; Tue, 19 May 2015 01:29:21 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id x9si8390798lal.18.2015.05.19.01.29.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 01:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labbd9 with SMTP id bd9so11760115lab.2 for ; Tue, 19 May 2015 01:29:21 -0700 (PDT) X-Received: by 10.152.21.136 with SMTP id v8mr12847178lae.19.1432024161088; Tue, 19 May 2015 01:29:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp627868lbb; Tue, 19 May 2015 01:29:20 -0700 (PDT) X-Received: by 10.140.232.3 with SMTP id d3mr35881452qhc.46.1432024159901; Tue, 19 May 2015 01:29:19 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id i64si1175101qge.99.2015.05.19.01.29.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 19 May 2015 01:29:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:44458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuctq-00076O-Sk for patch@linaro.org; Tue, 19 May 2015 04:29:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yucop-0006O6-LX for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yucoi-0006H8-6H for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:07 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yucoh-0006GF-Vo for qemu-devel@nongnu.org; Tue, 19 May 2015 04:24:00 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Yucod-0000bG-UK; Tue, 19 May 2015 09:23:55 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 19 May 2015 09:23:47 +0100 Message-Id: <1432023835-2274-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1432023835-2274-1-git-send-email-peter.maydell@linaro.org> References: <1432023835-2274-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PULL 02/10] ui/cocoa: Make -full-screen option work on Mac OS X X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Programmingkid This patch makes the -full-screen option actually instruct QEMU to enter fullscreen at startup, on Mac OS X. Signed-off-by: John Arbuckle Signed-off-by: Peter Maydell --- 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