wayland: Implement cosmic-a11y-v1
This commit is contained in:
parent
7af3650b83
commit
c45a58c16c
8 changed files with 223 additions and 22 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue