diff options
author | okan <okan> | 2015-06-08 15:11:29 +0000 |
---|---|---|
committer | okan <okan> | 2015-06-08 15:11:29 +0000 |
commit | 9180bb1a06abc01e8b0eaa0ae6b8c934988a8f6e (patch) | |
tree | a3b5b8992af150382513c6037ec589a78051b973 /mousefunc.c | |
parent | 8653c88c90d88dd849910ca742184de89c133a22 (diff) | |
download | cwm-9180bb1a06abc01e8b0eaa0ae6b8c934988a8f6e.tar.gz cwm-9180bb1a06abc01e8b0eaa0ae6b8c934988a8f6e.tar.xz cwm-9180bb1a06abc01e8b0eaa0ae6b8c934988a8f6e.zip |
stash window dimensions
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c index e06196f..718a577 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -53,9 +53,7 @@ mousefunc_sweep_draw(struct client_ctx *cc) struct screen_ctx *sc = cc->sc; char s[14]; /* fits " nnnn x nnnn \0" */ - (void)snprintf(s, sizeof(s), " %4d x %-4d ", - (cc->geom.w - cc->hint.basew) / cc->hint.incw, - (cc->geom.h - cc->hint.baseh) / cc->hint.inch); + (void)snprintf(s, sizeof(s), " %4d x %-4d ", cc->dim.w, cc->dim.h); XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0); XMoveResizeWindow(X_Dpy, sc->menuwin, 0, 0, |