ewmh: implement support for _NET_WORKAREA (rdesktop can use that)

Please note that rdesktop’s -g workarea option will not work on
64-bit systems at the moment because of a bug in rdesktop (see the
rdesktop-devel mailing list).
This commit is contained in:
Michael Stapelberg
2009-12-31 17:48:41 +01:00
parent c50bde458b
commit 75aac5bc02
7 changed files with 59 additions and 5 deletions

View 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) {