mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
stash window dimensions
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user