Adding the no window decorations patch
This commit is contained in:
parent
cd1aa57a06
commit
3947ceb431
3 changed files with 20 additions and 0 deletions
7
x.c
7
x.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue