diff options
author | Drew DeVault <[email protected]> | 2018-04-02 12:23:15 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-04-02 12:23:15 -0400 |
commit | 7e3aa1daa8b945b762d98bc67c660cdc6c94b72f (patch) | |
tree | d2b9dd4816efdf861e71bcd1eff6a70928e59dc6 /sway/tree/container.c | |
parent | 122b96abed9955f78e3f157167d34312f5bb551d (diff) | |
parent | e3689dd5a93b4f4ae62637a2b81797335aafdcaf (diff) |
Merge pull request #1693 from swaywm/move-cmd
Partially implement move command
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 746dbf1f..21fe3fb0 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -33,6 +33,23 @@ static list_t *get_bfs_queue() { return bfs_queue; } +const char *container_type_to_str(enum sway_container_type type) { + switch (type) { + case C_ROOT: + return "C_ROOT"; + case C_OUTPUT: + return "C_OUTPUT"; + case C_WORKSPACE: + return "C_WORKSPACE"; + case C_CONTAINER: + return "C_CONTAINER"; + case C_VIEW: + return "C_VIEW"; + default: + return "C_UNKNOWN"; + } +} + static void notify_new_container(struct sway_container *container) { wl_signal_emit(&root_container.sway_root->events.new_container, container); ipc_event_window(container, "new"); @@ -54,6 +71,7 @@ static struct sway_container *container_create(enum sway_container_type type) { } wl_signal_init(&c->events.destroy); + wl_signal_init(&c->events.reparent); return c; } |