JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix toggle_bar not working on empty workspaces.
[spectrwm.git] / spectrwm.c
index 275cc64..423db92 100644 (file)
@@ -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);