fix: remove any old blur surface or corners on surface creation
This commit is contained in:
parent
65b5dbc671
commit
f86d983896
1 changed files with 16 additions and 0 deletions
|
|
@ -874,6 +874,11 @@ impl SctkState {
|
|||
|
||||
_ = wl_surface.frame(&self.queue_handle, wl_surface.clone());
|
||||
|
||||
if let Some(old) = self.blur_surfaces.remove(&settings.id) {
|
||||
old.destroy();
|
||||
}
|
||||
_ = self.corner_radii.remove(&settings.id);
|
||||
|
||||
if let Some(blur) = self.pending_blur.remove(&settings.id) {
|
||||
self.apply_blur(settings.id, Some(blur), &wl_surface);
|
||||
}
|
||||
|
|
@ -1011,6 +1016,12 @@ impl SctkState {
|
|||
layer_surface.set_input_region(Some(®ion));
|
||||
region.destroy();
|
||||
}
|
||||
|
||||
if let Some(old) = self.blur_surfaces.remove(&id) {
|
||||
old.destroy();
|
||||
}
|
||||
_ = self.corner_radii.remove(&id);
|
||||
|
||||
if let Some(blur) = self.pending_blur.remove(&id) {
|
||||
self.apply_blur(id, Some(blur), &wl_surface);
|
||||
}
|
||||
|
|
@ -2022,6 +2033,11 @@ impl SctkState {
|
|||
region.destroy();
|
||||
}
|
||||
|
||||
if let Some(old) = self.blur_surfaces.remove(&settings.id) {
|
||||
old.destroy();
|
||||
}
|
||||
_ = self.corner_radii.remove(&settings.id);
|
||||
|
||||
if let Some(blur) = self.pending_blur.remove(&settings.id) {
|
||||
_ = self.apply_blur(settings.id, Some(blur), &wl_surface);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue