kms: Wipe dpms state on resume
This commit is contained in:
parent
12a42e239d
commit
9b89a1cc77
2 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ use crate::{
|
|||
shell::Shell,
|
||||
state::BackendData,
|
||||
utils::{env::dev_var, prelude::*},
|
||||
wayland::protocols::output_power::OutputPowerState,
|
||||
};
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
|
|
@ -413,6 +414,8 @@ impl State {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
OutputPowerState::refresh(state);
|
||||
state.common.refresh();
|
||||
});
|
||||
loop_signal.wakeup();
|
||||
|
|
|
|||
|
|
@ -440,6 +440,7 @@ impl Surface {
|
|||
self.overlay_plane_formats = overlay_plane_formats;
|
||||
self.feedback.clear();
|
||||
self.active.store(true, Ordering::SeqCst);
|
||||
self.dpms = true;
|
||||
|
||||
let _ = self
|
||||
.thread_command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue