shell: refactor single visible_output

This commit is contained in:
Victoria Brekenfeld 2023-12-20 19:58:43 +00:00 committed by Victoria Brekenfeld
parent 414cbfef2d
commit d503e44ca8
5 changed files with 42 additions and 37 deletions

View file

@ -41,8 +41,8 @@ impl FractionalScaleHandler for State {
.or_else(|| {
self.common
.shell
.visible_outputs_for_surface(&surface)
.next()
.visible_output_for_surface(&surface)
.cloned()
})
})
.unwrap_or_else(|| {