Adding netwmicon patch ref. #21

This commit is contained in:
bakkeby 2021-05-08 14:49:59 +02:00
parent 2876951262
commit 8c8bace91c
6 changed files with 711 additions and 1 deletions

6
x.c
View file

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