Set DPMS and remove fade surfaces in one place

This commit is contained in:
Ian Douglas Scott 2024-10-30 13:07:15 -07:00
parent 7a20c88896
commit 08c1cf318e
2 changed files with 14 additions and 10 deletions

View file

@ -150,6 +150,13 @@ impl State {
// Fade surfaces on all outputs have finished fading out
fn fade_done(&mut self) {
for output in &mut self.outputs {
output
.output_power
.set_mode(zwlr_output_power_v1::Mode::Off);
output.fade_surface = None;
}
if let Some(command) = self
.system_actions
.get(&shortcuts::action::System::LockScreen)