mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-29 08:34:59 +01:00
Destroy marks textures when view destroyed
This commit is contained in:
parent
b351d0a64a
commit
69ac7f73e7
1 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,14 @@ void view_destroy(struct sway_view *view) {
|
||||||
}
|
}
|
||||||
list_free(view->marks);
|
list_free(view->marks);
|
||||||
|
|
||||||
|
if (view->marks_focused) {
|
||||||
|
// If one is set then all of these are set
|
||||||
|
wlr_texture_destroy(view->marks_focused);
|
||||||
|
wlr_texture_destroy(view->marks_focused_inactive);
|
||||||
|
wlr_texture_destroy(view->marks_unfocused);
|
||||||
|
wlr_texture_destroy(view->marks_urgent);
|
||||||
|
}
|
||||||
|
|
||||||
container_destroy(view->swayc);
|
container_destroy(view->swayc);
|
||||||
|
|
||||||
if (view->impl->destroy) {
|
if (view->impl->destroy) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue