mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
remove NetWMName
This commit is contained in:
parent
a6a91757c1
commit
c95c4173a6
4 changed files with 3 additions and 4 deletions
|
@ -149,7 +149,6 @@ setup(Display *disp, awesome_config *awesomeconf)
|
|||
|
||||
/* init atoms */
|
||||
netatom[NetSupported] = XInternAtom(disp, "_NET_SUPPORTED", False);
|
||||
netatom[NetWMName] = XInternAtom(disp, "_NET_WM_NAME", False);
|
||||
XChangeProperty(disp, DefaultRootWindow(disp), netatom[NetSupported], XA_ATOM, 32,
|
||||
PropModeReplace, (unsigned char *) netatom, NetLast);
|
||||
/* init cursors */
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
enum
|
||||
{ CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
||||
enum
|
||||
{ NetSupported, NetWMName, NetLast }; /* EWMH atoms */
|
||||
{ NetSupported, NetLast }; /* EWMH atoms */
|
||||
|
||||
Bool gettextprop(Display *, Window, Atom, char *, unsigned int); /* return text property, UTF-8 compliant */
|
||||
void updatebarpos(Display *, Statusbar); /* updates the bar position */
|
||||
|
|
2
client.c
2
client.c
|
@ -179,7 +179,7 @@ attach(Client * c)
|
|||
inline void
|
||||
updatetitle(Client * c)
|
||||
{
|
||||
if(!gettextprop(c->display, c->win, netatom[NetWMName], c->name, sizeof c->name))
|
||||
if(!gettextprop(c->display, c->win, XInternAtom(c->display, "_NET_WM_NAME", False), c->name, sizeof c->name))
|
||||
gettextprop(c->display, c->win, XInternAtom(c->display, "WM_NAME", False), c->name, sizeof c->name);
|
||||
}
|
||||
|
||||
|
|
2
event.c
2
event.c
|
@ -348,7 +348,7 @@ handle_event_propertynotify(XEvent * e, awesome_config *awesomeconf)
|
|||
updatesizehints(c);
|
||||
break;
|
||||
}
|
||||
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName])
|
||||
if(ev->atom == XA_WM_NAME || ev->atom == XInternAtom(c->display, "_NET_WM_NAME", False))
|
||||
{
|
||||
updatetitle(c);
|
||||
if(c == sel)
|
||||
|
|
Loading…
Reference in a new issue