focus: Fix crash when no output is available
This commit is contained in:
parent
26ccb653b7
commit
953c277cb0
2 changed files with 4 additions and 8 deletions
|
|
@ -1455,13 +1455,7 @@ impl Shell {
|
|||
}
|
||||
|
||||
pub fn outputs(&self) -> impl DoubleEndedIterator<Item = &Output> {
|
||||
self.workspaces.sets.keys().chain(
|
||||
self.workspaces
|
||||
.backup_set
|
||||
.as_ref()
|
||||
.into_iter()
|
||||
.map(|set| &set.output),
|
||||
)
|
||||
self.workspaces.sets.keys()
|
||||
}
|
||||
|
||||
pub fn next_output(&self, current_output: &Output, direction: Direction) -> Option<&Output> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue