From: Tiago Cunha Date: Wed, 8 Feb 2012 01:07:46 +0000 (+0000) Subject: Clear status-bar when iconifying the last window. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=f0280ca20a2e85ec3d9f5388b363ef79cb459a31;p=spectrwm.git Clear status-bar when iconifying the last window. Make the focus_magic function responsible for updating the status-bar output when there is no window available. Now, any window related output gets cleared when iconifying the last available window. --- diff --git a/scrotwm.c b/scrotwm.c index cba3e36..6c9b2db 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -5998,8 +5998,11 @@ focus_magic(struct ws_win *win) { DNPRINTF(SWM_D_FOCUS, "focus_magic: window: 0x%lx\n", WINID(win)); - if (win == NULL) + if (win == NULL) { + /* if there are no windows clear the status-bar */ + bar_check_opts(); return; + } if (win->child_trans) { /* win = parent & has a transient so focus on that */