From: Michael Stapelberg Date: Sat, 20 Mar 2010 01:56:23 +0000 (+0100) Subject: ipc: also send workspace event when initializing a workspace for an output X-Git-Tag: 3.e~6^2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35a791f7e6c111c84ac1e949c300fba70ad802fb;p=i3%2Fi3 ipc: also send workspace event when initializing a workspace for an output --- diff --git a/src/randr.c b/src/randr.c index ab79ea5b..dac3c010 100644 --- a/src/randr.c +++ b/src/randr.c @@ -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); }