diff -r f923291b4237 tabbed.c --- a/tabbed.c Wed Oct 03 07:56:53 2012 +0200 +++ b/tabbed.c Sat Oct 13 00:07:29 2012 -0300 @@ -147,7 +147,7 @@ static Bool running = True, nextfocus, doinitspawn = True; static Display *dpy; static DC dc; -static Atom wmatom[WMLast], xembedatom; +static Atom wmatom[WMLast], xembedatom, wmnameatom; static Window root, win; static Client *clients = NULL, *sel = NULL, *lastsel = NULL; static int (*xerrorxlib)(Display *, XErrorEvent *); @@ -743,6 +743,7 @@ /* init atoms */ wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); + wmnameatom = XInternAtom(dpy, "_NET_WM_NAME", False); xembedatom = XInternAtom(dpy, "_XEMBED", False); /* init appearance */ @@ -855,7 +856,8 @@ void updatetitle(Client *c) { - gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); + if(!gettextprop(c->win, wmnameatom, c->name, sizeof c->name)) + gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); if(sel == c) XStoreName(dpy, win, c->name); drawbar();