JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
width is no longer -2 by default so adjust bar width
authorMarco Peereboom <marco@conformal.com>
Mon, 19 Jan 2009 19:40:26 +0000 (19:40 +0000)
committerMarco Peereboom <marco@conformal.com>
Mon, 19 Jan 2009 19:40:26 +0000 (19:40 +0000)
scrotwm.c

index be09a9b..2884b8b 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -479,7 +479,7 @@ bar_setup(struct swm_region *r)
        bar_height = bar_fs->ascent + bar_fs->descent + 3;
 
        r->bar_window = XCreateSimpleWindow(display, 
-           r->s->root, X(r), Y(r), WIDTH(r), bar_height - 2,
+           r->s->root, X(r), Y(r), WIDTH(r) - 2, bar_height - 2,
            1, r->s->bar_border, r->s->bar_color);
        bar_gc = XCreateGC(display, r->bar_window, 0, &bar_gcv);
        XSetFont(display, bar_gc, bar_fs->fid);