focus: Fall back to first window, if stack is empty
This commit is contained in:
parent
c933aa1a4f
commit
dc882ffc36
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue