mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
view-child: do not damage on finish
This commit is contained in:
parent
9760a8157f
commit
35fe890572
1 changed files with 0 additions and 5 deletions
|
|
@ -24,10 +24,6 @@ view_child_handle_new_subsurface(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
view_child_finish(struct view_child *child)
|
view_child_finish(struct view_child *child)
|
||||||
{
|
{
|
||||||
if (!child) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
damage_view_whole(child->parent);
|
|
||||||
wl_list_remove(&child->commit.link);
|
wl_list_remove(&child->commit.link);
|
||||||
wl_list_remove(&child->new_subsurface.link);
|
wl_list_remove(&child->new_subsurface.link);
|
||||||
}
|
}
|
||||||
|
|
@ -38,7 +34,6 @@ view_child_init(struct view_child *child, struct view *view,
|
||||||
{
|
{
|
||||||
child->parent = view;
|
child->parent = view;
|
||||||
child->surface = wlr_surface;
|
child->surface = wlr_surface;
|
||||||
|
|
||||||
child->commit.notify = view_child_handle_commit;
|
child->commit.notify = view_child_handle_commit;
|
||||||
wl_signal_add(&wlr_surface->events.commit, &child->commit);
|
wl_signal_add(&wlr_surface->events.commit, &child->commit);
|
||||||
child->new_subsurface.notify = view_child_handle_new_subsurface;
|
child->new_subsurface.notify = view_child_handle_new_subsurface;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue