![Rui Matos](/assets/img/avatar_default.png)
Commit 4295fdb892d4474b68e98aa783b725f99c1a2d3a made us skip focusing all xdg_popups instead of just non-grabbing ones as intended. This means that when unmanaging a window we might select a xdg_popup window to focus (in meta_stack_get_default_focus_window() ) but then since we don't actually focus it we go on unmanaging the focused window which triggers an assertion, as it should. To avoid this and still fixing bug 771694 we can make use of the MetaWindow->input property for non-grabbing xdg_popup windows since their semantics, in this regard, are the same as no input X11 windows. This way, when unmanaging a focused window while a xdg_popup is up, we'll either give focus to the xdg_popup or not select the popup at all to be focused if it's non-grabbing. https://bugzilla.gnome.org/show_bug.cgi?id=775986
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%