diff options
author | okan | 2012-07-13 15:21:35 +0000 |
---|---|---|
committer | okan | 2012-07-13 15:21:35 +0000 |
commit | a4c958a3f89733566a15f47d5ddc0167fe5e85d4 (patch) | |
tree | c389a5df0d1eac207d889d53e01760717fb24f45 /xutil.c | |
parent | 5e6e2b31dc906e221316757e7b05b680209148b1 (diff) | |
download | cwm-a4c958a3f89733566a15f47d5ddc0167fe5e85d4.tar.gz |
convert xmax/ymax uses to view geometry.
Diffstat (limited to '')
-rw-r--r-- | xutil.c | 12 |
1 files changed, 6 insertions, 6 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. * - * $OpenBSD: xutil.c,v 1.43 2012/07/08 02:55:01 okan Exp $ + * $OpenBSD: xutil.c,v 1.44 2012/07/13 15:21:35 okan Exp $ */ #include <sys/param.h> @@ -298,7 +298,7 @@ xu_ewmh_net_supported_wm_check(struct screen_ctx *sc) void xu_ewmh_net_desktop_geometry(struct screen_ctx *sc) { - long geom[2] = { sc->xmax, sc->ymax }; + long geom[2] = { sc->view.w, sc->view.h }; XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_DESKTOP_GEOMETRY].atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)geom , 2); @@ -311,10 +311,10 @@ xu_ewmh_net_workarea(struct screen_ctx *sc) int i; for (i = 0; i < CALMWM_NGROUPS; i++) { - workareas[i][0] = sc->gap.left; - workareas[i][1] = sc->gap.top; - workareas[i][2] = sc->xmax - (sc->gap.left + sc->gap.right); - workareas[i][3] = sc->ymax - (sc->gap.top + sc->gap.bottom); + workareas[i][0] = sc->work.x; + workareas[i][1] = sc->work.y; + workareas[i][2] = sc->work.w; + workareas[i][3] = sc->work.h; } XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_WORKAREA].atom, |