Adding the no window decorations patch

This commit is contained in:
Bakkeby 2022-08-24 11:04:49 +02:00
parent cd1aa57a06
commit 3947ceb431
3 changed files with 20 additions and 0 deletions

7
x.c
View file

@ -1580,6 +1580,13 @@ xinit(int cols, int rows)
PropModeReplace, (uchar *)&icon, LEN(icon));
#endif //NETWMICON_PATCH
#if NO_WINDOW_DECORATIONS_PATCH
Atom motifwmhints = XInternAtom(xw.dpy, "_MOTIF_WM_HINTS", False);
unsigned int data[] = { 0x2, 0x0, 0x0, 0x0, 0x0 };
XChangeProperty(xw.dpy, xw.win, motifwmhints, motifwmhints, 16,
PropModeReplace, (unsigned char *)data, 5);
#endif // NO_WINDOW_DECORATIONS_PATCH
xw.netwmpid = XInternAtom(xw.dpy, "_NET_WM_PID", False);
XChangeProperty(xw.dpy, xw.win, xw.netwmpid, XA_CARDINAL, 32,
PropModeReplace, (uchar *)&thispid, 1);