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
|
||||
|
||||
This event consists of a single serialized map containing a property
|
||||
+change (string)+ which indicates the type of the change ("focus", "init",
|
||||
"empty", "urgent").
|
||||
+change (string)+ which indicates the type of the change ("focus", "create",
|
||||
"init", "empty", "urgent").
|
||||
|
||||
*Example:*
|
||||
---------------------
|
||||
|
|
|
@ -59,7 +59,7 @@ Workspace *workspace_get(int number) {
|
|||
|
||||
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");
|
||||
|
||||
|
@ -291,6 +291,8 @@ void workspace_initialize(Workspace *ws, Output *output, bool recheck) {
|
|||
return;
|
||||
|
||||
workspace_assign_to(ws, ws->output, false);
|
||||
|
||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue