macos: start application in foreground
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 20:20:24 +0000 (12:20 -0800)
committerChristian Hergert <chergert@redhat.com>
Wed, 16 Mar 2022 19:24:11 +0000 (12:24 -0700)
commit17b40ca1487b2427598e8404af22d8b1fe83726d
treebed652c5ecb06c37c637cc1b5bf1b3295075f148
parent29d424ef91ad5007b588395abedc0d3865ef99bb
macos: start application in foreground

We need to bring the application to the foreground in multiple ways, and
this call to [NSApp activateIgnoringOtherApps:YES] ensures that we become
foreground before the first window is opened. Otherwise we end up starting
applications in the background.

Fixes #4736
gdk/macos/gdkmacosdisplay.c