From: Vadim Zeitlin Date: Wed, 7 Nov 2007 00:16:40 +0000 (+0000) Subject: replaced FIXME comment left in the last commit with an explanation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f2633e547c5cd30fc516827ae433a065a38731a7 replaced FIXME comment left in the last commit with an explanation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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"));