]> git.sur5r.net Git - i3/i3/blobdiff - src/randr.c
ipc: also send workspace event when initializing a workspace for an output
[i3/i3] / src / randr.c
index ab79ea5bdb10e992a7ec8490284a74f150f5a7df..dac3c0105dee8e73128aa06be7d0773c67236798 100644 (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);
 }