From: BALATON Zoltan <balaton@eik.bme.hu>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: [Qemu-devel] [PATCH] ui/cocoa: Make sure app is not starting in the background
Date: Fri, 15 Feb 2019 01:14:44 +0100 [thread overview]
Message-ID: <20190215005614.3AD927456C9@zero.eik.bme.hu> (raw)
Activate app to make sure the window is brought to front e.g. when
started from a terminal window.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
---
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 = [[QemuCocoaAppController alloc] init];
[NSApp setDelegate:appController];
- // 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");
--
2.13.7
reply other threads:[~2019-02-15 0:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190215005614.3AD927456C9@zero.eik.bme.hu \
--to=balaton@eik.bme.hu \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.