diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-04 19:37:01 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-04 19:37:01 -0400 |
commit | cfd806577b9ba6049cc3dec3cd78168bfb7ca4db (patch) | |
tree | cdb7649e26f7388ba50a3779a8fb7124c4c4fd01 | |
parent | 3e61718053a7e2cdd94c64f5613c6bdf28e35c8e (diff) |
fix sending window new event
-rw-r--r-- | sway/tree/container.c | 8 |
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) { } void container_create_notify(struct sway_container *container) { - if (container->type != C_VIEW || container->type != C_CONTAINER) { - return; - } // TODO send ipc event type based on the container type wl_signal_emit(&root_container.sway_root->events.new_container, container); - ipc_event_window(container, "new"); + + if (container->type == C_VIEW || container->type == C_CONTAINER) { + ipc_event_window(container, "new"); + } } static void container_close_notify(struct sway_container *container) { |