From 1f8726d893d526ed78fd27acbefd1aed3d764a89 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sat, 14 Mar 2009 14:41:28 +0100 Subject: [PATCH] Client: Fix client_get_name (if there is again no title, try XFetchName) --- src/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index ff72ec1..85baa82 100644 --- a/src/client.c +++ b/src/client.c @@ -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;