From 1ddfc76bfe73ba2d356c7f794f8390b868a0d61c Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Thu, 4 Oct 2012 02:05:30 +0800 Subject: [PATCH] Fix toggle_bar not working on empty workspaces. --- spectrwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrwm.c b/spectrwm.c index 275cc64..423db92 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2178,7 +2178,7 @@ bar_draw(void) if (r->bar == NULL) continue; - if (r->ws->bar_enabled) + if (bar_enabled && r->ws->bar_enabled) xcb_map_window(conn, r->bar->id); else { xcb_unmap_window(conn, r->bar->id);