macos: select new key window after processing events
authorChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 08:50:10 +0000 (00:50 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 11 Mar 2022 22:44:06 +0000 (14:44 -0800)
commit6bedcf22bc0e6dda80af333b3976786c05c48393
tree57a70e2a0db59b75eb6d453351c562dc520aa60d
parenteeb9d6c39875c5d6a0ec7b9537de1695400b681d
macos: select new key window after processing events

If we closed a key window in response to events, we need to denote another
window as the new key window. This is easiest to do from an idle so that
we don't clobber notification pairs of "did resign"/"did become" key
window.

We have a sorted set of surfaces by display server stacking, so we can
take the first one we come across that is already mapped and re-show it
to become key/main.
gdk/macos/gdkmacosdisplay-private.h
gdk/macos/gdkmacosdisplay.c