diff options
author | oga | 2009-12-11 18:09:16 +0000 |
---|---|---|
committer | oga | 2009-12-11 18:09:16 +0000 |
commit | 7a6ee251e12824ed1a8e974ad238c9e7023b4a0d (patch) | |
tree | 960e62c86f49d17c202a26b67f7cfeb59d9f11c9 /screen.c | |
parent | f73eddcff9e4ed14f03cd8b9afeef54822633ba9 (diff) | |
download | cwm-7a6ee251e12824ed1a8e974ad238c9e7023b4a0d.tar.gz |
add _NET_WORKAREA. for now we ignore the gap, this'll change soonish.
ok okan@
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: screen.c,v 1.22 2009/12/11 17:57:38 oga Exp $ + * $Id: screen.c,v 1.23 2009/12/11 18:09:16 oga Exp $ */ #include "headers.h" @@ -102,10 +102,23 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y) void screen_update_geometry(struct screen_ctx *sc, int width, int height) { - long geom[2]; + long geom[2], workareas[CALMWM_NGROUPS][4]; + int i; sc->xmax = geom[0] = width; sc->ymax = geom[1] = height; XChangeProperty(X_Dpy, sc->rootwin, _NET_DESKTOP_GEOMETRY, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)geom , 2); + + /* x, y, width, height. XXX gap */ + for (i = 0; i < CALMWM_NGROUPS; i++) { + workareas[i][0] = 0; + workareas[i][1] = 0; + workareas[i][2] = width; + workareas[i][3] = height; + } + + XChangeProperty(X_Dpy, sc->rootwin, _NET_WORKAREA, + XA_CARDINAL, 32, PropModeReplace, + (unsigned char *)workareas, CALMWM_NGROUPS * 4); } |