view: add function to damage whole view

This commit is contained in:
Jente Hidskes 2019-02-13 18:50:08 +01:00
parent aa4b27ec20
commit 1308c0ffc3
4 changed files with 20 additions and 0 deletions

View file

@ -391,6 +391,18 @@ output_damage_view_surface(struct cg_output *cg_output, struct cg_view *view)
view_for_each_surface(view, damage_surface, &data);
}
void
output_damage_view_whole(struct cg_output *cg_output, struct cg_view *view)
{
struct damage_data data = {
.output = cg_output,
.x = view->x,
.y = view->y,
.whole = true,
};
view_for_each_surface(view, damage_surface, &data);
}
void
output_damage_drag_icon(struct cg_output *cg_output, struct cg_drag_icon *drag_icon)
{