Commit 0d204fbd authored by Marco Trevisan's avatar Marco Trevisan 🎺

window: Don't try to focus unmanaging windows

GNOME/mutter!307
parent 2ddd7059
Pipeline #59151 passed with stages
in 4 minutes and 58 seconds
......@@ -2220,7 +2220,7 @@ window_state_on_map (MetaWindow *window,
/* don't initially focus windows that are intended to not accept
* focus
*/
if (!meta_window_is_focusable (window))
if (!meta_window_is_focusable (window) || window->unmanaging)
{
*takes_focus = FALSE;
return;
......
......@@ -141,7 +141,7 @@ static void
meta_window_wayland_focus (MetaWindow *window,
guint32 timestamp)
{
if (meta_window_is_focusable (window))
if (!window->unmanaging && meta_window_is_focusable (window))
meta_x11_display_set_input_focus_window (window->display->x11_display,
window,
FALSE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment