macos: start application in foreground
authorChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 20:20:24 +0000 (12:20 -0800)
committerChristian Hergert <christian@hergert.me>
Mon, 28 Feb 2022 20:20:24 +0000 (12:20 -0800)
commit66284cd24547a8adc56ca3d24558b83465bd7986
tree337df82c929af75bc46108d86bfed3c3e6271a20
parentf9faecd5b7a62937f82e4bca515e6c71bc9c2fa4
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