mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap. ok oga@
This commit is contained in:
10
screen.c
10
screen.c
@ -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,
|
||||
|
Reference in New Issue
Block a user