fix: clean up blur rectangles when a toplevel is closed
This commit is contained in:
parent
3da8907d7a
commit
6511d2f1a6
1 changed files with 14 additions and 0 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -743,6 +743,20 @@ impl Application for App {
|
|||
{
|
||||
self.toplevels.0.remove(idx);
|
||||
}
|
||||
if let Some(k) = self
|
||||
.rects
|
||||
.keys()
|
||||
.find(|k| k.toplevel_id.as_ref().is_some_and(|t| handle.id() == *t))
|
||||
.cloned()
|
||||
{
|
||||
self.rects.remove(&k);
|
||||
if let Some(w) = k.workspaces_id {
|
||||
return Task::batch(
|
||||
w.into_iter()
|
||||
.filter_map(|w| self.update_active_workspace(w)),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
backend::Event::WorkspaceCapture(handle, image) => {
|
||||
//println!("Workspace capture");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue