diff options
author | okan <okan> | 2013-11-27 14:20:32 +0000 |
---|---|---|
committer | okan <okan> | 2013-11-27 14:20:32 +0000 |
commit | 250f98bf1552ebbff28ff4d9c7b853687065d476 (patch) | |
tree | f226bc604a545191fa19d13dae7b0839246f7269 /mousefunc.c | |
parent | fa25915a75551c36495c8a0fa2754ac3091c529e (diff) | |
download | cwm-250f98bf1552ebbff28ff4d9c7b853687065d476.tar.gz cwm-250f98bf1552ebbff28ff4d9c7b853687065d476.tar.xz cwm-250f98bf1552ebbff28ff4d9c7b853687065d476.zip |
simplify/unfold
Diffstat (limited to 'mousefunc.c')
-rw-r--r-- | mousefunc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mousefunc.c b/mousefunc.c index 31cf951..34e39ff 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -50,21 +50,19 @@ static void mousefunc_sweep_draw(struct client_ctx *cc) { struct screen_ctx *sc = cc->sc; - char asize[14]; /* fits " nnnn x nnnn \0" */ + char s[14]; /* fits " nnnn x nnnn \0" */ - (void)snprintf(asize, sizeof(asize), " %4d x %-4d ", + (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); XReparentWindow(X_Dpy, sc->menuwin, cc->win, 0, 0); XMoveResizeWindow(X_Dpy, sc->menuwin, 0, 0, - xu_xft_width(sc->xftfont, asize, strlen(asize)), - sc->xftfont->height); + xu_xft_width(sc->xftfont, s, strlen(s)), sc->xftfont->height); XMapWindow(X_Dpy, sc->menuwin); XClearWindow(X_Dpy, sc->menuwin); - xu_xft_draw(sc, asize, CWM_COLOR_MENU_FONT, - 0, sc->xftfont->ascent + 1); + xu_xft_draw(sc, s, CWM_COLOR_MENU_FONT, 0, sc->xftfont->ascent + 1); } void |