Set DPMS and remove fade surfaces in one place
This commit is contained in:
parent
7a20c88896
commit
08c1cf318e
2 changed files with 14 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue