From da79bd65de159730b1468e466b2c31d46fcc0238 Mon Sep 17 00:00:00 2001 From: taiyu Date: Thu, 27 Aug 2015 20:32:56 -0700 Subject: use previous outputs --- include/container.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/container.h b/include/container.h index 6c0de104..29f75f45 100644 --- a/include/container.h +++ b/include/container.h @@ -94,6 +94,7 @@ swayc_t *swayc_focus_by_layout(swayc_t *container, enum swayc_layouts); swayc_t *swayc_by_handle(wlc_handle handle); +swayc_t *swayc_by_name(const char *name); swayc_t *swayc_active_output(void); swayc_t *swayc_active_workspace(void); swayc_t *swayc_active_workspace_for(swayc_t *view); -- cgit v1.2.3 From 5678d824e43d1ae2e2abaa1bc9a03391a4683a86 Mon Sep 17 00:00:00 2001 From: taiyu Date: Thu, 27 Aug 2015 23:18:28 -0700 Subject: update visibility + container info functions --- include/container.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/container.h b/include/container.h index 29f75f45..cfb2e868 100644 --- a/include/container.h +++ b/include/container.h @@ -103,6 +103,10 @@ swayc_t *swayc_active_workspace_for(swayc_t *view); bool swayc_is_fullscreen(swayc_t *view); bool swayc_is_active(swayc_t *view); +// Is `parent` the parent of `child` +bool swayc_is_parent_of(swayc_t *parent, swayc_t *child); +// Is `child` a child of `parent` +bool swayc_is_child_of(swayc_t *child, swayc_t *parent); // Mapping functions -- cgit v1.2.3