From de0d6045bacb17521af9180b99baa5d9893475fe Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 20 Jun 2008 16:42:07 +0200 Subject: [PATCH] client: do not send request for WM_NAME It's X standard. Signed-off-by: Julien Danjou --- client.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/client.c b/client.c index 97ca6bdba..c18fece81 100644 --- a/client.c +++ b/client.c @@ -166,16 +166,14 @@ void client_updatetitle(client_t *c) { char *name; - xutil_intern_atom_request_t net_wm_name_q, wm_name_q; - xcb_atom_t net_wm_name, wm_name; + xutil_intern_atom_request_t net_wm_name_q; + xcb_atom_t net_wm_name; net_wm_name_q = xutil_intern_atom(globalconf.connection, &globalconf.atoms, "_NET_WM_NAME"); - wm_name_q = xutil_intern_atom(globalconf.connection, &globalconf.atoms, "WM_NAME"); net_wm_name = xutil_intern_atom_reply(globalconf.connection, &globalconf.atoms, net_wm_name_q); - wm_name = xutil_intern_atom_reply(globalconf.connection, &globalconf.atoms, wm_name_q); if(!xutil_gettextprop(globalconf.connection, c->win, &globalconf.atoms, net_wm_name, &name)) - if(!xutil_gettextprop(globalconf.connection, c->win, &globalconf.atoms, wm_name, &name)) + if(!xutil_gettextprop(globalconf.connection, c->win, &globalconf.atoms, WM_NAME, &name)) return; p_delete(&c->name);