shell: Send on_commit to sticky windows as well
This commit is contained in:
parent
b371a26362
commit
6416299d58
3 changed files with 15 additions and 29 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue