From: Reginald Kennedy Date: Wed, 3 Oct 2012 18:05:30 +0000 (+0800) Subject: Fix toggle_bar not working on empty workspaces. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=1ddfc76bfe73ba2d356c7f794f8390b868a0d61c;p=spectrwm.git Fix toggle_bar not working on empty workspaces. --- 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);