kms: Wipe dpms state on resume

This commit is contained in:
Victoria Brekenfeld 2026-04-22 12:53:33 +02:00 committed by Jacob Kauffmann
parent 12a42e239d
commit 9b89a1cc77
2 changed files with 4 additions and 0 deletions

View file

@ -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();

View file

@ -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