From dc882ffc3660220750a59f663a0553c430b0e355 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Wed, 3 Jul 2024 21:03:58 +0200 Subject: [PATCH] focus: Fall back to first window, if stack is empty --- src/shell/focus/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell/focus/mod.rs b/src/shell/focus/mod.rs index 3c40c9eb..843db923 100644 --- a/src/shell/focus/mod.rs +++ b/src/shell/focus/mod.rs @@ -453,6 +453,7 @@ fn update_focus_target( .focus_stack .get(&seat) .last() + .or_else(|| shell.active_space(&output).mapped().next()) .cloned() .map(KeyboardFocusTarget::from) }