diff --git a/src/core/workspace.c b/src/core/workspace.c index 89f6d369f..62328ad31 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -1346,7 +1346,10 @@ find_focusable_ancestor (MetaWindow *window, { MetaWorkspaceFocusableAncestorData *data = user_data; - if (!window->unmanaging && meta_window_is_focusable (window) && + if (!window->unmanaging && + window->mapped && + !window->hidden && + meta_window_is_focusable (window) && meta_window_located_on_workspace (window, data->workspace) && meta_window_showing_on_its_workspace (window)) {