Client: Fix client_get_name (if there is again no title, try XFetchName)

This commit is contained in:
Martin Duquesnoy 2009-03-14 14:41:28 +01:00
parent e1ec0c29df
commit 1f8726d893

View File

@ -248,7 +248,11 @@ client_get_name(Client *c)
/* If there is no title... */
if(!c->title)
c->title = _strdup("WMFS");
{
XFetchName(dpy, c->win, &(c->title));
if(!c->title)
c->title = _strdup("WMFS");
}
frame_update(c);
@ -783,6 +787,7 @@ client_unmap(Client *c)
barwin_unmap_subwin(c->titlebar);
barwin_unmap(c->titlebar);
}
XUnmapWindow(dpy, c->frame);
XUnmapSubwindows(dpy, c->frame);
c->unmapped = True;