JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix bar border color when starting with a single region.
authorReginald Kennedy <rk@rejii.com>
Sat, 27 Oct 2012 08:04:28 +0000 (16:04 +0800)
committerReginald Kennedy <rk@rejii.com>
Sat, 27 Oct 2012 08:04:31 +0000 (16:04 +0800)
spectrwm.c

index 130c7af..2bad31b 100644 (file)
@@ -3339,11 +3339,6 @@ set_region(struct swm_region *r)
        if (r == NULL)
                return;
 
-       /* Skip if only one region on this screen. */
-       rf = TAILQ_FIRST(&r->s->rl);
-       if (TAILQ_NEXT(rf, entry) == NULL)
-               goto out;
-
        rf = r->s->r_focus;
        /* Unfocus old region bar. */
        if (rf) {
@@ -3359,7 +3354,6 @@ set_region(struct swm_region *r)
        xcb_change_window_attributes(conn, r->bar->id,
            XCB_CW_BORDER_PIXEL, &r->s->c[SWM_S_COLOR_BAR_BORDER].pixel);
 
-out:
        r->s->r_focus = r;
 }