mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +01:00
Fail gamma control on output removal
This commit is contained in:
parent
c4d811fd97
commit
7ee97f2589
2 changed files with 7 additions and 0 deletions
|
@ -1186,6 +1186,7 @@ impl State {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
self.space.unmap_output(&output);
|
self.space.unmap_output(&output);
|
||||||
|
self.gamma_control_manager_state.output_removed(&output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,12 @@ impl GammaControlManagerState {
|
||||||
gamma_controls: HashMap::new(),
|
gamma_controls: HashMap::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn output_removed(&mut self, output: &Output) {
|
||||||
|
if let Some(gamma_control) = self.gamma_controls.remove(output) {
|
||||||
|
gamma_control.failed();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct GammaControlState {
|
pub struct GammaControlState {
|
||||||
|
|
Loading…
Reference in a new issue