shell: Send on_commit to sticky windows as well

This commit is contained in:
Victoria Brekenfeld 2024-03-28 13:10:28 +01:00
parent b371a26362
commit 6416299d58
3 changed files with 15 additions and 29 deletions

View file

@ -1697,6 +1697,18 @@ impl Shell {
.refresh(Some(&self.workspace_state));
}
pub fn on_commit(&mut self, surface: &WlSurface) {
if let Some(mapped) = self.element_for_surface(surface) {
mapped
.windows()
.find(|(w, _)| w.wl_surface().as_ref() == Some(surface))
.unwrap()
.0
.on_commit();
}
self.popups.commit(surface);
}
pub fn remap_unfullscreened_window(
&mut self,
mapped: CosmicMapped,