[comp.windows.x] Problem with clip rectangles and R2 server

glenn@bacchus.esa.oz.au (Glenn Lawrence) (12/20/90)

I have noticed some quirks when using XSetClipRectangles with
our R2 servers, that do not seem to occur on our R4 server.

 1) When using multiple clip rectangles and some of them
    overlap, the server sometimes fails to draw into some
    parts of the clip rectangles.

 2) When using multiple clip rectangles and at least one of them
    includes the bottom line of pixels in the window (although
    not necessarily exceeding the bounds of the window) the
    the server sometimes fails to draw into some parts of the
    clip rectangles. Note that in this case the rectangles need
    _not_ be overlapping.

I understand that quirky behaviour in case (1) is reasonable
since the documentation indicates results are undefined if
rectangles overlap (although silly me didn't realise this at
first). Interestingly this documented "feature" seems to
have been fixed with R4. Does anyone know if this is actually so?

The second problem is of more concern. Can anyone verify for me
please whether this is actually a bug in the R2 server? Also,
I would be _very_ interested to know if there are any other
problems that others have found using clip rectangles with R2
servers.

Many thanks in advance.

Glenn.

------------------------------------------------------------------------------
glenn@bacchus.esa.oz.au

Glenn Lawrence,
Snr. Software Engineer,
Expert Solutions Australia
172 Burwood Rd, Hawthorn, Vic. Australia  Tel +61 3 8194554