diff options
author | Tony Crisci <[email protected]> | 2018-04-02 13:23:43 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2018-04-02 13:23:43 -0400 |
commit | 5e024278a62e6fb00a0521240244c428d2382984 (patch) | |
tree | d9010d33d4d576297cc5e40d41bed4bb7bf5631a /sway/tree/container.c | |
parent | 22287b42bf323457d779b1023764ade83313b199 (diff) | |
parent | 2a8985a3451f8be7e4b1eb21e3266e9f5b979b39 (diff) |
Merge branch 'wlroots' into seat-fixes
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 2d752862..ea0b7d5c 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; } |