shell: Using parking_lot's RwLock for fairness guarantees
This commit is contained in:
parent
8194be30c6
commit
465813c1c5
42 changed files with 247 additions and 396 deletions
|
|
@ -42,20 +42,11 @@ impl FractionalScaleHandler for State {
|
|||
self.common
|
||||
.shell
|
||||
.read()
|
||||
.unwrap()
|
||||
.visible_output_for_surface(&surface)
|
||||
.cloned()
|
||||
})
|
||||
})
|
||||
.unwrap_or_else(|| {
|
||||
self.common
|
||||
.shell
|
||||
.read()
|
||||
.unwrap()
|
||||
.seats
|
||||
.last_active()
|
||||
.active_output()
|
||||
});
|
||||
.unwrap_or_else(|| self.common.shell.read().seats.last_active().active_output());
|
||||
|
||||
with_states(&surface, |states| {
|
||||
with_fractional_scale(states, |fractional_scale| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue