From 9485e7305cfedd46edd5a5d02a8b211bd5a62503 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 10 Sep 2007 16:45:42 +0200 Subject: [PATCH] remove WMName --- awesome.c | 1 - awesome.h | 2 +- client.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/awesome.c b/awesome.c index 321480743..182f7c899 100644 --- a/awesome.c +++ b/awesome.c @@ -147,7 +147,6 @@ setup(Display *disp, awesome_config *awesomeconf) XSetWindowAttributes wa; /* init atoms */ - wmatom[WMName] = XInternAtom(disp, "WM_NAME", False); wmatom[WMState] = XInternAtom(disp, "WM_STATE", False); netatom[NetSupported] = XInternAtom(disp, "_NET_SUPPORTED", False); netatom[NetWMName] = XInternAtom(disp, "_NET_WM_NAME", False); diff --git a/awesome.h b/awesome.h index ff1d8dbf6..3f3cd22ab 100644 --- a/awesome.h +++ b/awesome.h @@ -39,7 +39,7 @@ enum enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ enum -{ WMName, WMState, WMLast }; /* default atoms */ +{ WMState, WMLast }; /* default atoms */ Bool gettextprop(Display *, Window, Atom, char *, unsigned int); /* return text property, UTF-8 compliant */ void updatebarpos(Display *, Statusbar); /* updates the bar position */ diff --git a/client.c b/client.c index 2599b6ea4..27587f539 100644 --- a/client.c +++ b/client.c @@ -179,7 +179,7 @@ inline void updatetitle(Client * c) { if(!gettextprop(c->display, c->win, netatom[NetWMName], c->name, sizeof c->name)) - gettextprop(c->display, c->win, wmatom[WMName], c->name, sizeof c->name); + gettextprop(c->display, c->win, XInternAtom(c->display, "WM_NAME", False), c->name, sizeof c->name); } /** Ban client