aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-28 07:41:36 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-28 07:41:36 -0400
commit9751fff5c51ba9e4d046e3fd3df5dd3f07ab069b (patch)
treef24d9614b7d0be9163d0abe224f8aa283aff9238 /include
parent930d136196f12fc13380c68058c52d86107561cd (diff)
parent4757ea6a1212dab6ee82421a20b152d1f16e44fb (diff)
Merge pull request #145 from taiyu-len/master
use previous output containers
Diffstat (limited to 'include')
-rw-r--r--include/container.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/container.h b/include/container.h
index 6c0de104..cfb2e868 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);
@@ -102,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