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 <chergert@redhat.com>
Wed, 16 Mar 2022 19:25:10 +0000 (12:25 -0700)
commit9462b3fea2afb3b13d5168046f199f0f485b5700
tree04d5ce577786f4d9f0b9364f20f7511fd24d354f
parentd62313e75ce528cadbea00b148e35d7e62dfef61
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