ipc: only emit window::create event for views

This commit is contained in:
Ian Fan 2018-07-16 14:01:35 +01:00
parent 317217f2c8
commit 07101a5707
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void container_create_notify(struct sway_container *container) {
// TODO send ipc event type based on the container type
wl_signal_emit(&root_container.sway_root->events.new_container, container);
if (container->type == C_VIEW || container->type == C_CONTAINER) {
if (container->type == C_VIEW) {
ipc_event_window(container, "new");
} else if (container->type == C_WORKSPACE) {
ipc_event_workspace(NULL, container, "init");