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:
Doug Torrance 2015-04-07 02:45:13 -05:00 committed by Carlos R. Mafra
parent 6ee0dc71aa
commit 920a4b8c3b

View file

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