]> git.sur5r.net Git - i3/i3/blobdiff - src/workspace.c
ewmh: implement support for _NET_WORKAREA (rdesktop can use that)
[i3/i3] / src / workspace.c
index f8bfcd76f06a60af7b72c2d90d7c19d24fb01d2c..7c29e6f7f8d731fd828f6c03e409acecb7be39e9 100644 (file)
@@ -27,6 +27,7 @@
 #include "workspace.h"
 #include "client.h"
 #include "log.h"
+#include "ewmh.h"
 
 /*
  * Returns a pointer to the workspace with the given number (starting at 0),
@@ -59,6 +60,8 @@ Workspace *workspace_get(int number) {
         }
         DLOG("done\n");
 
+        ewmh_update_workarea();
+
         return ws;
 }
 
@@ -262,6 +265,8 @@ void workspace_assign_to(Workspace *ws, i3Screen *screen) {
         /* Copy the dimensions from the virtual screen */
         memcpy(&(ws->rect), &(ws->screen->rect), sizeof(Rect));
 
+        ewmh_update_workarea();
+
         /* Force reconfiguration for each client on that workspace */
         FOR_TABLE(ws)
                 CIRCLEQ_FOREACH(client, &(ws->table[cols][rows]->clients), clients) {