aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/container.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index f13e2e96..58fd4898 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -42,14 +42,12 @@ const char *container_type_to_str(enum sway_container_type type) {
42} 42}
43 43
44void container_create_notify(struct sway_container *container) { 44void container_create_notify(struct sway_container *container) {
45 // TODO send ipc event type based on the container type
46 wl_signal_emit(&root_container.sway_root->events.new_container, container);
47
48 if (container->type == C_VIEW) { 45 if (container->type == C_VIEW) {
49 ipc_event_window(container, "new"); 46 ipc_event_window(container, "new");
50 } else if (container->type == C_WORKSPACE) { 47 } else if (container->type == C_WORKSPACE) {
51 ipc_event_workspace(NULL, container, "init"); 48 ipc_event_workspace(NULL, container, "init");
52 } 49 }
50 wl_signal_emit(&root_container.sway_root->events.new_container, container);
53} 51}
54 52
55void container_update_textures_recursive(struct sway_container *con) { 53void container_update_textures_recursive(struct sway_container *con) {
@@ -146,10 +144,10 @@ void container_begin_destroy(struct sway_container *con) {
146 return; 144 return;
147 } 145 }
148 146
149 wl_signal_emit(&con->events.destroy, con);
150 if (con->type == C_VIEW) { 147 if (con->type == C_VIEW) {
151 ipc_event_window(con, "close"); 148 ipc_event_window(con, "close");
152 } 149 }
150 wl_signal_emit(&con->events.destroy, con);
153 151
154 container_end_mouse_operation(con); 152 container_end_mouse_operation(con);
155 153