shell: don't accidentally reset zoom when using multiple seats (theoretically)
This commit is contained in:
parent
effd67d498
commit
15c5e3fe26
1 changed files with 2 additions and 2 deletions
|
|
@ -2079,7 +2079,7 @@ impl Shell {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let previous_level = if let Some(old_state) = self.zoom_state.take() {
|
let previous_level = if let Some(old_state) = self.zoom_state.as_ref() {
|
||||||
if &old_state.seat != seat {
|
if &old_state.seat != seat {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -2092,7 +2092,7 @@ impl Shell {
|
||||||
OutputZoomState::new(seat, output, movement, level);
|
OutputZoomState::new(seat, output, movement, level);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1.0
|
1.
|
||||||
};
|
};
|
||||||
|
|
||||||
self.zoom_state = Some(ZoomState {
|
self.zoom_state = Some(ZoomState {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue