wmload: Pass XCreateBitmapFromData a pointer to char as expected.
Previously, a pointer to an unsigned char was passed, causing a "pointer targets differ in signedness [-Wpointer-sign]" warning.
This commit is contained in:
parent
6ee0dc71aa
commit
920a4b8c3b
|
@ -218,7 +218,7 @@ int main(int argc,char *argv[])
|
|||
NormalGC = XCreateGC(dpy, Root, gcm, &gcv);
|
||||
|
||||
if (ONLYSHAPE) { /* try to make shaped window here */
|
||||
pixmask = XCreateBitmapFromData(dpy, win, mask2_bits, mask2_width,
|
||||
pixmask = XCreateBitmapFromData(dpy, win, (char *)mask2_bits, mask2_width,
|
||||
mask2_height);
|
||||
XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, pixmask, ShapeSet);
|
||||
XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);
|
||||
|
|
Loading…
Reference in a new issue