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