mapped: Allow to query in-flight configure for resize throttling
This commit is contained in:
parent
6c7ec54bdb
commit
df74a322ab
2 changed files with 63 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue