I got problem with xterm, though not urxvt - when title randomly was not updated. By some reason sometimes WM_NAME prop event doesn't accompany one for _NET_WM_NAME, despite its changed, thus missing update. One nasty issue here - next update will supply previous name, though eventually gives actual name. Checking for both WM_NAME and _NET_WM_NAME does the fix. --- tabbed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tabbed.c b/tabbed.c index b4f8db4..899f417 100644 --- a/tabbed.c +++ b/tabbed.c @@ -879,7 +879,7 @@ propertynotify(const XEvent *e) } } XFree(wmh); - } else if (ev->state != PropertyDelete && ev->atom == XA_WM_NAME && + } else if (ev->state != PropertyDelete && (ev->atom == XA_WM_NAME || ev->atom == wmatom[WMName]) && (c = getclient(ev->window)) > -1) { updatetitle(c); } -- 2.26.2