summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/container.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index b47a8364..92c00f83 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -51,12 +51,12 @@ const char *container_type_to_str(enum sway_container_type type) {
51} 51}
52 52
53void container_create_notify(struct sway_container *container) { 53void container_create_notify(struct sway_container *container) {
54 if (container->type != C_VIEW || container->type != C_CONTAINER) {
55 return;
56 }
57 // TODO send ipc event type based on the container type 54 // TODO send ipc event type based on the container type
58 wl_signal_emit(&root_container.sway_root->events.new_container, container); 55 wl_signal_emit(&root_container.sway_root->events.new_container, container);
59 ipc_event_window(container, "new"); 56
57 if (container->type == C_VIEW || container->type == C_CONTAINER) {
58 ipc_event_window(container, "new");
59 }
60} 60}
61 61
62static void container_close_notify(struct sway_container *container) { 62static void container_close_notify(struct sway_container *container) {