From f0280ca20a2e85ec3d9f5388b363ef79cb459a31 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Wed, 8 Feb 2012 01:07:46 +0000 Subject: [PATCH] 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. --- scrotwm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */ -- 1.7.10.4