[Xcb] Problem with dock windows and libxcb-icccm
Peter Harris
pharris at opentext.com
Wed Mar 10 07:50:28 PST 2010
On 2010-03-10 08:18, David Coppa wrote:
>
> What about this patch?
Looks sensible. Could you please include a Signed-off-by in the next
version? Thanks.
> if (!(reply->type == XCB_ATOM_WM_SIZE_HINTS &&
> (reply->format == 8 || reply->format == 16 ||
> - reply->format == 32) &&
> - /* OldNumPropSizeElements = 15 (pre-ICCCM) */
> - length >= 15))
> + reply->format == 32)))
You could even remove the line "(reply->format == 8 || reply->format ==
16 ||" too, since the size hints must be 32 bit to make sense.
Other formats might appear to work if you're not in a mixed-endian
environment, but it's safer to just ignore hints with the wrong
->format. Also, the (length >= 15) test is wrong if ->format isn't 32.
Peter Harris
--
Open Text Connectivity Solutions Group
Peter Harris http://connectivity.opentext.com/
Research and Development Phone: +1 905 762 6001
pharris at opentext.com Toll Free: 1 877 359 4866
More information about the Xcb
mailing list