aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2010-01-27 03:04:50 +0000
committerokan2010-01-27 03:04:50 +0000
commitcf907fa95c4a6c1fa13ad717089fa5d0cb099350 (patch)
tree6b333345d88e56bcf35f7f67aee73831f5790560 /screen.c
parentfb3ff22ef266df7aab2945a994a190f507cdfc51 (diff)
downloadcwm-cf907fa95c4a6c1fa13ad717089fa5d0cb099350.tar.gz
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap. ok oga@
Diffstat (limited to '')
-rw-r--r--screen.c12
1 files changed, 6 insertions, 6 deletions
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 <sys/param.h>
@@ -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,