summaryrefslogtreecommitdiff
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-04-02 14:06:04 -0400
committerTony Crisci <[email protected]>2018-04-02 14:06:04 -0400
commit2187684bd09928748f8b3a82c2e25e5ae82f5ae6 (patch)
treee70e2862280a410f8f0d617abc3539d6f0ae056e /include/sway/tree/container.h
parentb5d49cc4e86b5da5a3479c2d2a763be50184f75d (diff)
parent2a8985a3451f8be7e4b1eb21e3266e9f5b979b39 (diff)
Merge branch 'wlroots' into split-containers
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index f0e87fb5..fa22ea75 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -84,12 +84,21 @@ struct sway_container {
struct {
struct wl_signal destroy;
+ // Raised after the tree updates, but before arrange_windows
+ // Passed the previous parent
+ struct wl_signal reparent;
} events;
};
// TODO make private and use the container-specific create functions
struct sway_container *container_create(enum sway_container_type type);
+const char *container_type_to_str(enum sway_container_type type);
+
+// TODO only one container create function and pass the type?
+struct sway_container *container_output_create(
+ struct sway_output *sway_output);
+
/**
* Create a new container container. A container container can be a a child of
* a workspace container or another container container.