From 3a09255e9a634d24d00005c4c8a61a965195d82a Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Wed, 14 Jan 2009 07:24:05 +0000 Subject: [PATCH] Make sure all workspaces get restacked after the bar is toggled. --- scrotwm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 1.7.10.4