aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 19:37:01 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-04-04 19:37:01 -0400
commitcfd806577b9ba6049cc3dec3cd78168bfb7ca4db (patch)
treecdb7649e26f7388ba50a3779a8fb7124c4c4fd01 /sway/tree
parenttry to fix focus-inactive (diff)
downloadsway-cfd806577b9ba6049cc3dec3cd78168bfb7ca4db.tar.gz
sway-cfd806577b9ba6049cc3dec3cd78168bfb7ca4db.tar.zst
sway-cfd806577b9ba6049cc3dec3cd78168bfb7ca4db.zip
fix sending window new event
Diffstat (limited to 'sway/tree')
-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) {