Don't track damage for views on inactive tabs

This commit is contained in:
Ryan Dwyer 2018-05-20 09:11:55 +10:00
parent bd79584f65
commit efc07fb3d4
6 changed files with 52 additions and 11 deletions

View file

@ -274,4 +274,10 @@ bool view_has_mark(struct sway_view *view, char *mark);
void view_update_marks_textures(struct sway_view *view);
/**
* Returns true if there's a possibility the view may be rendered on screen.
* Intended for damage tracking.
*/
bool view_is_visible(struct sway_view *view);
#endif