mirror of
https://cagebreak.project-repo.co/cagebreak.git
synced 2026-08-21 04:54:17 +02:00
Fix rendering bug when closing subsurfaces
This commit is contained in:
parent
172fa34f6a
commit
cd03381bc4
1 changed files with 5 additions and 2 deletions
7
view.c
7
view.c
|
|
@ -74,6 +74,10 @@ view_child_finish(struct cg_view_child *child) {
|
|||
return;
|
||||
}
|
||||
|
||||
if(child->view != NULL && child->view->wlr_surface != NULL) {
|
||||
view_damage_whole(child->view);
|
||||
}
|
||||
|
||||
wl_list_remove(&child->link);
|
||||
wl_list_remove(&child->commit.link);
|
||||
wl_list_remove(&child->new_subsurface.link);
|
||||
|
|
@ -305,13 +309,12 @@ view_unmap(struct cg_view *view) {
|
|||
wl_list_remove(&view->link);
|
||||
|
||||
wl_list_remove(&view->new_subsurface.link);
|
||||
view->wlr_surface = NULL;
|
||||
|
||||
struct cg_view_child *child, *tmp;
|
||||
wl_list_for_each_safe(child, tmp, &view->children, link) {
|
||||
child->destroy(child);
|
||||
}
|
||||
|
||||
view->wlr_surface = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue