set support for _NET_WM_ICON

This commit is contained in:
Julien Danjou 2007-12-27 16:07:24 +01:00
parent 029f73ddfc
commit 0f4a9df88c
1 changed files with 2 additions and 1 deletions

View File

@ -289,7 +289,7 @@ main(int argc, char *argv[])
Display * dpy; Display * dpy;
int shape_event, randr_event_base; int shape_event, randr_event_base;
int screen; int screen;
enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ enum { NetSupported, NetWMName, NetWMIcon, NetLast }; /* EWMH atoms */
Atom netatom[NetLast]; Atom netatom[NetLast];
event_handler **handler; event_handler **handler;
struct sockaddr_un *addr; struct sockaddr_un *addr;
@ -347,6 +347,7 @@ main(int argc, char *argv[])
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
netatom[NetWMIcon] = XInternAtom(dpy, "_NET_WM_ICON", False);
/* do this only for real screen */ /* do this only for real screen */
for(screen = 0; screen < ScreenCount(dpy); screen++) for(screen = 0; screen < ScreenCount(dpy); screen++)