macos: fix backdrop when displaying popover
authorChristian Hergert <christian@hergert.me>
Tue, 22 Feb 2022 08:08:00 +0000 (00:08 -0800)
committerChristian Hergert <christian@hergert.me>
Tue, 22 Feb 2022 08:08:37 +0000 (00:08 -0800)
commitc0ede8d46e1fa97926f7531c3c7cd3771793ff16
treefed910602460f6344fb5ac7bdb7d11c4b2534ac1
parentf41fe7b8e493d3580d8b40a73b079315bc76235e
macos: fix backdrop when displaying popover

Previously, the popover would cause the window to go into the :backdrop
state which is not what we want for consistency with other platforms. This
fixes that by walking up the surface chain when we get notified of
loosing or acquiring "key" input from the display server.
gdk/macos/gdkmacosdisplay.c