From: Ryan McBride Date: Wed, 14 Jan 2009 07:24:05 +0000 (+0000) Subject: Make sure all workspaces get restacked after the bar is toggled. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=3a09255e9a634d24d00005c4c8a61a965195d82a;p=spectrwm.git Make sure all workspaces get restacked after the bar is toggled. --- diff --git a/scrotwm.c b/scrotwm.c index 0d4fc1e..9eb0e62 100644 --- 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;