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,
|
shell::Shell,
|
||||||
state::BackendData,
|
state::BackendData,
|
||||||
utils::{env::dev_var, prelude::*},
|
utils::{env::dev_var, prelude::*},
|
||||||
|
wayland::protocols::output_power::OutputPowerState,
|
||||||
};
|
};
|
||||||
|
|
||||||
use anyhow::{Context, Result};
|
use anyhow::{Context, Result};
|
||||||
|
|
@ -413,6 +414,8 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OutputPowerState::refresh(state);
|
||||||
state.common.refresh();
|
state.common.refresh();
|
||||||
});
|
});
|
||||||
loop_signal.wakeup();
|
loop_signal.wakeup();
|
||||||
|
|
|
||||||
|
|
@ -440,6 +440,7 @@ impl Surface {
|
||||||
self.overlay_plane_formats = overlay_plane_formats;
|
self.overlay_plane_formats = overlay_plane_formats;
|
||||||
self.feedback.clear();
|
self.feedback.clear();
|
||||||
self.active.store(true, Ordering::SeqCst);
|
self.active.store(true, Ordering::SeqCst);
|
||||||
|
self.dpms = true;
|
||||||
|
|
||||||
let _ = self
|
let _ = self
|
||||||
.thread_command
|
.thread_command
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue