Update status-bar when focusing.

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
This commit is contained in:
Tiago Cunha 2012-02-03 17:26:59 +00:00
parent fe1d4ab5ca
commit bc0953a3ce

View file

@ -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();
}