JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Make sure all workspaces get restacked after the bar is toggled.
authorRyan McBride <mcbride@countersiege.com>
Wed, 14 Jan 2009 07:24:05 +0000 (07:24 +0000)
committerRyan McBride <mcbride@countersiege.com>
Wed, 14 Jan 2009 07:24:05 +0000 (07:24 +0000)
scrotwm.c

index 0d4fc1e..9eb0e62 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -185,6 +185,8 @@ bar_signal(int sig)
 void
 bar_toggle(union arg *args)
 {
+       int i;
+
        DNPRINTF(SWM_D_MISC, "bar_toggle\n");
 
        if (bar_enabled) {
@@ -197,6 +199,8 @@ bar_toggle(union arg *args)
                XMapWindow(display, bar_window);
        }
        XSync(display, False);
+       for (i = 0; i < SWM_WS_MAX; i++)
+               ws[i].restack = 1;
 
        stack();
        bar_print(); /* must be after stack */
@@ -334,6 +338,8 @@ stack(void)
 
        winfocus->id = root;
 
+       ws[current_ws].restack = 0;
+
        if (ws[current_ws].winno == 0)
                return;