X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c029873c66cfdc0dcbf52958970273435ba02fc..0b7dce5480b8cf7ce4368122744d853f7a684e34:/src/unix/utilsx11.cpp diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 51736ee332..efb3be521c 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -382,20 +382,20 @@ static bool wxKwinRunning(Display *display, Window rootWnd) { wxMAKE_ATOM(KWIN_RUNNING, display); - long *data; + unsigned char* data; Atom type; int format; unsigned long nitems, after; if (XGetWindowProperty(display, rootWnd, KWIN_RUNNING, 0, 1, False, KWIN_RUNNING, &type, &format, &nitems, &after, - (unsigned char**)&data) != Success) + &data) != Success) { return false; } bool retval = (type == KWIN_RUNNING && - nitems == 1 && data && data[0] == 1); + nitems == 1 && data && ((long*)data)[0] == 1); XFree(data); return retval; }