remove WMName

This commit is contained in:
Julien Danjou 2007-09-10 16:45:42 +02:00
parent 58dac78b87
commit 9485e7305c
3 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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 */

View File

@ -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