ipc: send workspace event in workspace_initialize (Thanks fernando)
This commit is contained in:
parent
0b111f7f1a
commit
60e507ca6f
4
docs/ipc
4
docs/ipc
@ -267,8 +267,8 @@ output::
|
|||||||
=== workspace event
|
=== workspace event
|
||||||
|
|
||||||
This event consists of a single serialized map containing a property
|
This event consists of a single serialized map containing a property
|
||||||
+change (string)+ which indicates the type of the change ("focus", "init",
|
+change (string)+ which indicates the type of the change ("focus", "create",
|
||||||
"empty", "urgent").
|
"init", "empty", "urgent").
|
||||||
|
|
||||||
*Example:*
|
*Example:*
|
||||||
---------------------
|
---------------------
|
||||||
|
@ -59,7 +59,7 @@ Workspace *workspace_get(int number) {
|
|||||||
|
|
||||||
TAILQ_INSERT_TAIL(workspaces, ws, workspaces);
|
TAILQ_INSERT_TAIL(workspaces, ws, workspaces);
|
||||||
|
|
||||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");
|
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"create\"}");
|
||||||
}
|
}
|
||||||
DLOG("done\n");
|
DLOG("done\n");
|
||||||
|
|
||||||
@ -291,6 +291,8 @@ void workspace_initialize(Workspace *ws, Output *output, bool recheck) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
workspace_assign_to(ws, ws->output, false);
|
workspace_assign_to(ws, ws->output, false);
|
||||||
|
|
||||||
|
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user