diff options
author | oga <oga> | 2009-12-10 23:14:58 +0000 |
---|---|---|
committer | oga <oga> | 2009-12-10 23:14:58 +0000 |
commit | a7c3a7cac323e5522f70f6f4fb3c6eb6607d1b99 (patch) | |
tree | 535c480fb7c21312b69505a81e145a61fbca0ca4 /screen.c | |
parent | 134e777cf095ae292730e1c9d3f7967099878024 (diff) | |
download | cwm-a7c3a7cac323e5522f70f6f4fb3c6eb6607d1b99.tar.gz cwm-a7c3a7cac323e5522f70f6f4fb3c6eb6607d1b99.tar.xz cwm-a7c3a7cac323e5522f70f6f4fb3c6eb6607d1b99.zip |
Implement _NET_CURRENT_DESKTOP, _NET_DESKTOP_VIEWPORT and
_NET_DESKTOP_GEOMETRY. ok okan@
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/screen.c b/screen.c index 6f73f2f..33d8199 100644 --- a/screen.c +++ b/screen.c @@ -98,3 +98,14 @@ screen_find_xinerama(struct screen_ctx *sc, int x, int y) } return (NULL); } + +void +screen_update_geometry(struct screen_ctx *sc, int width, int height) +{ + int geom[2]; + + 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); +} |