aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-21 11:24:05 +0100
committerGitHub <noreply@github.com>2018-05-21 11:24:05 +0100
commita7adbf4b79dce4d61de1a8a71cba535aeae6bc76 (patch)
tree68210775c09209884b46b5866ca1b4530ca24324 /include/sway/tree
parentec1c4c6c3683772637dbfeaf5cdbaea4e1c6e49d (diff)
parent048b29527b8b0ec9c6cd9d0439b74bf73f4f6e2d (diff)
downloadsway-a7adbf4b79dce4d61de1a8a71cba535aeae6bc76.tar.xz
Merge pull request #2005 from RyanDwyer/tabbed-layout
Implement tabbed layout
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/container.h2
-rw-r--r--include/sway/tree/view.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index e7e9d944..598a4f3d 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -162,7 +162,7 @@ struct sway_container *container_parent(struct sway_container *container,
* is a view and the view contains a surface at those coordinates.
*/
struct sway_container *container_at(struct sway_container *container,
- double lx, double ly, struct wlr_surface **surface,
+ double ox, double oy, struct wlr_surface **surface,
double *sx, double *sy);
/**
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);
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