a11y/zoom: zoom level per output

This commit is contained in:
Victoria Brekenfeld 2025-03-25 17:31:48 +01:00 committed by Victoria Brekenfeld
parent babb96ddfa
commit 0ba0a0cdaa
11 changed files with 154 additions and 117 deletions

View file

@ -16,7 +16,7 @@ impl A11yHandler for State {
if shell
.zoom_state()
.is_some_and(|state| state.current_level() != 1.0)
.is_some_and(|state| shell.outputs().any(|o| state.current_level(o) != 1.0))
!= enabled
{
let seat = shell.seats.last_active().clone();
@ -29,6 +29,7 @@ impl A11yHandler for State {
shell.trigger_zoom(
&seat,
None,
level,
zoom_config,
true,