From nobody Sun May 19 03:02:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1550192560063185.35518329133117; Thu, 14 Feb 2019 17:02:40 -0800 (PST) Received: from localhost ([127.0.0.1]:57629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guRtg-0005Nc-6G for importer@patchew.org; Thu, 14 Feb 2019 20:02:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guRnc-0001WG-LC for qemu-devel@nongnu.org; Thu, 14 Feb 2019 19:56:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guRnb-0001fr-Gh for qemu-devel@nongnu.org; Thu, 14 Feb 2019 19:56:16 -0500 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]:16058) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guRnb-0001f2-AB for qemu-devel@nongnu.org; Thu, 14 Feb 2019 19:56:15 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 502C17456D1; Fri, 15 Feb 2019 01:56:14 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 3AD927456C9; Fri, 15 Feb 2019 01:56:14 +0100 (CET) From: BALATON Zoltan Date: Fri, 15 Feb 2019 01:14:44 +0100 To: qemu-devel@nongnu.org Message-Id: <20190215005614.3AD927456C9@zero.eik.bme.hu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:738:2001:2001::2001 Subject: [Qemu-devel] [PATCH] ui/cocoa: Make sure app is not starting in the background X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Activate app to make sure the window is brought to front e.g. when started from a terminal window. Signed-off-by: BALATON Zoltan --- This is on top of Peter's patches. ui/cocoa.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 201a294ed4..4727f9c392 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1746,7 +1746,8 @@ int main (int argc, const char * argv[]) { QemuCocoaAppController *appController =3D [[QemuCocoaAppController all= oc] init]; [NSApp setDelegate:appController]; =20 - // Start the main event loop + // Activate app and start the main event loop + [NSApp activateIgnoringOtherApps:YES]; COCOA_DEBUG("Main thread: entering OSX run loop\n"); [NSApp run]; COCOA_DEBUG("Main thread: left OSX run loop, exiting\n"); --=20 2.13.7