From 35a791f7e6c111c84ac1e949c300fba70ad802fb Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 20 Mar 2010 02:56:23 +0100 Subject: [PATCH] ipc: also send workspace event when initializing a workspace for an output --- src/randr.c | 2 ++ 1 file changed, 2 insertions(+) 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); }