* [Qemu-devel] [PATCH] ui/cocoa: Make sure app is not starting in the background
@ 2019-02-15 0:14 BALATON Zoltan
0 siblings, 0 replies; only message in thread
From: BALATON Zoltan @ 2019-02-15 0:14 UTC (permalink / raw)
To: qemu-devel; +Cc: Peter Maydell
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-02-15 0:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 0:14 [Qemu-devel] [PATCH] ui/cocoa: Make sure app is not starting in the background BALATON Zoltan
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.