JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Update status-bar when focusing.
authorTiago Cunha <tcunha@gmx.com>
Fri, 3 Feb 2012 17:26:59 +0000 (17:26 +0000)
committerTiago Cunha <tcunha@gmx.com>
Tue, 7 Feb 2012 23:08:36 +0000 (23:08 +0000)
While focusing on a window, update the status-bar if any of the window
related enabled options is set, so that its output matches reality.

Easily reproducible by firing up scrotwm and opening a new window.

ok marco

scrotwm.c

index 7895187..593c775 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -2207,7 +2207,7 @@ focus_win(struct ws_win *win)
                    PropModeReplace, (unsigned char *)&win->id,1);
        }
 
-       if (window_name_enabled)
+       if (window_name_enabled || title_class_enabled || title_name_enabled)
                bar_update();
 }