show X root window name in spot1 title for a custom status bar
This commit is contained in:
6
event.c
6
event.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user