From cf907fa95c4a6c1fa13ad717089fa5d0cb099350 Mon Sep 17 00:00:00 2001 From: okan Date: Wed, 27 Jan 2010 03:04:50 +0000 Subject: - allow per-screen gap; not (yet) user configurable. - teach _NET_WORKAREA about gap. ok oga@ --- screen.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index e5793a5..9a5ad56 100644 --- a/screen.c +++ b/screen.c @@ -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.25 2009/12/15 04:10:42 okan Exp $ + * $Id: screen.c,v 1.26 2010/01/27 03:04:50 okan Exp $ */ #include @@ -119,12 +119,12 @@ screen_update_geometry(struct screen_ctx *sc, int width, int height) XChangeProperty(X_Dpy, sc->rootwin, _NET_DESKTOP_GEOMETRY, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)geom , 2); - /* x, y, width, height. XXX gap */ + /* x, y, width, height. */ for (i = 0; i < CALMWM_NGROUPS; i++) { - workareas[i][0] = 0; - workareas[i][1] = 0; - workareas[i][2] = width; - workareas[i][3] = height; + workareas[i][0] = sc->gap.left; + workareas[i][1] = sc->gap.top; + workareas[i][2] = width - (sc->gap.left + sc->gap.right); + workareas[i][3] = height - (sc->gap.top + sc->gap.bottom); } XChangeProperty(X_Dpy, sc->rootwin, _NET_WORKAREA, -- cgit v1.2.3-2-gb3c3