mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 08:21:28 +00:00
Destroy marks textures when view destroyed
This commit is contained in:
parent
b351d0a64a
commit
69ac7f73e7
|
@ -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…
Reference in a new issue