summaryrefslogtreecommitdiff
path: root/src/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.c')
-rw-r--r--src/stack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stack.c b/src/stack.c
index 4b994339..050360c0 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -1339,6 +1339,7 @@ meta_stack_get_default_focus_window (MetaStack *stack,
window != not_this_one &&
(window->unmaps_pending == 0) &&
!window->minimized &&
+ (window->input || window->take_focus) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
{