ipc: also send workspace event when initializing a workspace for an output

This commit is contained in:
Michael Stapelberg 2010-03-20 02:56:23 +01:00
parent 46bd9ac58a
commit 35a791f7e6
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include "workspace.h"
#include "log.h"
#include "ewmh.h"
#include "ipc.h"
/* While a clean namespace is usually a pretty good thing, we really need
* to use shorter names than the whole xcb_randr_* default names. */
@ -188,6 +189,7 @@ void initialize_output(xcb_connection_t *conn, Output *output, Workspace *worksp
SLIST_INIT(&(output->dock_clients));
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, "{\"change\":\"init\"}");
DLOG("initialized output at (%d, %d) with %d x %d\n",
output->rect.x, output->rect.y, output->rect.width, output->rect.height);
}