summaryrefslogtreecommitdiffstats
path: root/include/sway/tree/view.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-20 09:11:55 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-21 20:16:56 +1000
commitefc07fb3d45e07529e3817b4a1598f2c3256d600 (patch)
tree28a76416b5d3a50fa4db1c459e19a3f42c849d35 /include/sway/tree/view.h
parentAdd assertion in container_at_view (diff)
downloadsway-efc07fb3d45e07529e3817b4a1598f2c3256d600.tar.gz
sway-efc07fb3d45e07529e3817b4a1598f2c3256d600.tar.zst
sway-efc07fb3d45e07529e3817b4a1598f2c3256d600.zip
Don't track damage for views on inactive tabs
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r--include/sway/tree/view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 951912d0..0fb8f1b3 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -274,4 +274,10 @@ bool view_has_mark(struct sway_view *view, char *mark);
274 274
275void view_update_marks_textures(struct sway_view *view); 275void view_update_marks_textures(struct sway_view *view);
276 276
277/**
278 * Returns true if there's a possibility the view may be rendered on screen.
279 * Intended for damage tracking.
280 */
281bool view_is_visible(struct sway_view *view);
282
277#endif 283#endif