X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/676c8c1d39a6b598fe32443c3517a66464ff8c5a..46eb9b54be171eb301e4ebfda75205170e9c4fb4:/src/unix/displayx11.cpp diff --git a/src/unix/displayx11.cpp b/src/unix/displayx11.cpp index edfd86baca..99cb9e824c 100644 --- a/src/unix/displayx11.cpp +++ b/src/unix/displayx11.cpp @@ -375,8 +375,11 @@ void wxClientDisplayRect(int *x, int *y, int *width, int *height) { wxX11Ptr x11ptr(workareas); // ensure it will be freed + // check that we retrieved the property of the expected type and + // that we did get back 4 longs (32 is the format for long), as + // requested if ( actualType != XA_CARDINAL || - format != 32 || // FIXME: what is this 32? + format != 32 || numItems != 4 ) { wxLogDebug(_T("XGetWindowProperty(\"_NET_WORKAREA\") failed"));