wayland: Implement cosmic-a11y-v1

This commit is contained in:
Victoria Brekenfeld 2025-02-17 20:30:26 +01:00 committed by Victoria Brekenfeld
parent 7af3650b83
commit c45a58c16c
8 changed files with 223 additions and 22 deletions

View file

@ -2034,6 +2034,14 @@ impl Shell {
1.
};
let toggled = previous_level != level && (previous_level == 1.0 || level == 1.0);
if toggled {
let value = previous_level == 1.0;
let _ = loop_handle.insert_idle(move |state| {
state.common.a11y_state.set_screen_magnifier(value);
});
}
self.zoom_state = Some(ZoomState {
seat: seat.clone(),
level,