show X root window name in spot1 title for a custom status bar

This commit is contained in:
Sean Pringle
2013-04-27 23:06:16 +10:00
parent ed2fb6f96b
commit f99ebf1d04
5 changed files with 18 additions and 3 deletions

View File

@@ -179,6 +179,12 @@ void property_notify(XEvent *ev)
XPropertyEvent *e = &ev->xproperty;
client *c = window_build_client(e->window);
if (e->window == root && e->atom == atoms[WM_NAME])
{
// root name appears in SPOT1 bar, for status etc
update_bars();
}
else
if (c && c->visible && c->manage)
{
client_update_border(c);