diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-07-16 14:01:35 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-01 16:57:15 +0100 |
commit | 07101a570750f47fa5d4fb81739a40168b6c8ea6 (patch) | |
tree | 9aef1c3dfdc48327fb7a66073cc6beb8d5a51648 | |
parent | ipc: add window::mark event (diff) | |
download | sway-07101a570750f47fa5d4fb81739a40168b6c8ea6.tar.gz sway-07101a570750f47fa5d4fb81739a40168b6c8ea6.tar.zst sway-07101a570750f47fa5d4fb81739a40168b6c8ea6.zip |
ipc: only emit window::create event for views
-rw-r--r-- | sway/tree/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 3b3c5e2e..92d9ce06 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -62,7 +62,7 @@ void container_create_notify(struct sway_container *container) { | |||
62 | // TODO send ipc event type based on the container type | 62 | // TODO send ipc event type based on the container type |
63 | wl_signal_emit(&root_container.sway_root->events.new_container, container); | 63 | wl_signal_emit(&root_container.sway_root->events.new_container, container); |
64 | 64 | ||
65 | if (container->type == C_VIEW || container->type == C_CONTAINER) { | 65 | if (container->type == C_VIEW) { |
66 | ipc_event_window(container, "new"); | 66 | ipc_event_window(container, "new"); |
67 | } else if (container->type == C_WORKSPACE) { | 67 | } else if (container->type == C_WORKSPACE) { |
68 | ipc_event_workspace(NULL, container, "init"); | 68 | ipc_event_workspace(NULL, container, "init"); |