From 825bd9777e1093e70dc8dfd528b15ead782e4c99 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Sat, 27 Oct 2012 16:04:28 +0800 Subject: [PATCH] Fix bar border color when starting with a single region. --- spectrwm.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 130c7af..2bad31b 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -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; } -- 1.7.10.4