Skip to content

Commit

Permalink
feat: remove buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 6, 2024
1 parent 91bbda9 commit 6675f03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layershellev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,12 @@ impl<T: Debug + 'static, INFO: 'static + Clone> WindowState<T, INFO> {
else {
continue;
};
self.units[index].layer_shell.destroy();
self.units[index].wl_surface.destroy();
self.units[index]
.buffer
.as_ref()
.map(|buffer| buffer.destroy());
self.units.remove(index);
}
_ => {}
Expand Down

0 comments on commit 6675f03

Please sign in to comment.