Adding netwmicon patch ref. #21
This commit is contained in:
parent
2876951262
commit
8c8bace91c
6 changed files with 711 additions and 1 deletions
6
x.c
6
x.c
|
|
@ -1333,6 +1333,12 @@ xinit(int cols, int rows)
|
|||
xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False);
|
||||
XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1);
|
||||
|
||||
#if NETWMICON_PATCH
|
||||
xw.netwmicon = XInternAtom(xw.dpy, "_NET_WM_ICON", False);
|
||||
XChangeProperty(xw.dpy, xw.win, xw.netwmicon, XA_CARDINAL, 32,
|
||||
PropModeReplace, (uchar *)&icon, LEN(icon));
|
||||
#endif //NETWMICON_PATCH
|
||||
|
||||
xw.netwmpid = XInternAtom(xw.dpy, "_NET_WM_PID", False);
|
||||
XChangeProperty(xw.dpy, xw.win, xw.netwmpid, XA_CARDINAL, 32,
|
||||
PropModeReplace, (uchar *)&thispid, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue