mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-12 04:28:24 -05:00
view_destroy: unmap surface if it isn't yet
Otherwise, we're left with an invalid link in the view list.
This commit is contained in:
parent
2b8ee61d8b
commit
3ef0fc3867
1 changed files with 3 additions and 0 deletions
3
view.c
3
view.c
|
|
@ -97,6 +97,9 @@ view_destroy(struct cg_view *view)
|
|||
struct cg_server *server = view->server;
|
||||
bool terminate = view_is_primary(view);
|
||||
|
||||
if (view->wlr_surface != NULL) {
|
||||
view_unmap(view);
|
||||
}
|
||||
free(view);
|
||||
|
||||
/* If this was our primary view, exit. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue