ipc: only emit window::create event for views

master
Ian Fan 7 years ago
parent 317217f2c8
commit 07101a5707

@ -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");

Loading…
Cancel
Save