summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-11-27 14:20:33 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-11-27 14:20:33 +0000
commit1b9906d9a864199865b8af374c2e5e12f49d7bc7 (patch)
tree22ca116cc2c292f0fb41b338b2ab741394cb911e /app/cwm/mousefunc.c
parentb30da7a51fb828fdb801493eb5ff1564cde8397a (diff)
simplify/unfold
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index b1fe7cf42..1bec15396 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.57 2013/10/19 18:59:22 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.58 2013/11/27 14:20:32 okan Exp $
*/
#include <sys/param.h>
@@ -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