st/patch/netwmicon_legacy.c
2024-03-13 10:35:17 +01:00

8 lines
200 B
C

void
setnetwmicon(void)
{
xw.netwmicon = XInternAtom(xw.dpy, "_NET_WM_ICON", False);
XChangeProperty(xw.dpy, xw.win, xw.netwmicon, XA_CARDINAL, 32,
PropModeReplace, (uchar *)&icon, LEN(icon));
}