ipc: send workspace event in workspace_initialize (Thanks fernando)

This commit is contained in:
Michael Stapelberg 2010-06-29 14:48:19 +02:00
parent 0b111f7f1a
commit 60e507ca6f
2 changed files with 5 additions and 3 deletions

View File

@ -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:*
---------------------

View File

@ -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\"}");
}
/*