mapped: Allow to query in-flight configure for resize throttling

This commit is contained in:
Victoria Brekenfeld 2025-01-15 19:55:13 +01:00 committed by Victoria Brekenfeld
parent 6c7ec54bdb
commit df74a322ab
2 changed files with 63 additions and 0 deletions

View file

@ -489,6 +489,14 @@ impl CosmicMapped {
}
}
pub fn latest_size_committed(&self) -> bool {
match &self.element {
CosmicMappedInternal::Stack(s) => s.surfaces().any(|s| s.latest_size_committed()),
CosmicMappedInternal::Window(w) => w.surface().latest_size_committed(),
_ => unreachable!(),
}
}
pub fn configure(&self) -> Option<Serial> {
match &self.element {
CosmicMappedInternal::Stack(s) => {