JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix toggle_bar not working on empty workspaces.
authorReginald Kennedy <rk@rejii.com>
Wed, 3 Oct 2012 18:05:30 +0000 (02:05 +0800)
committerReginald Kennedy <rk@rejii.com>
Wed, 3 Oct 2012 18:05:33 +0000 (02:05 +0800)
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);