Suppose a redirected window is completely covered by a non-redirected one. After moving the redirected window, drawing to it happens in the wrong place. I once traced this to borderClip not getting updated correctly, but I have since forgotten the details. The test program I'll attach demonstrates this bug.
Created attachment 4038 [details] The test program
Created attachment 4269 [details] [review] Proposed fix This patch fixes the bug for me (and includes the patch for bug 5274). The problem is that the borderClip doesn't get updated when the window is FullyObscured, which is incorrect when the window is redirected.
fbbits.h: In function 'fbPolySegment32': fbbits.h:832: warning: 'bits' is used uninitialized in this function fbbits.h: In function 'fbPolySegment24': fbbits.h:832: warning: 'bits' is used uninitialized in this function fbbits.h: In function 'fbPolySegment16': fbbits.h:832: warning: 'bits' is used uninitialized in this function fbbits.h: In function 'fbPolySegment8': fbbits.h:832: warning: 'bits' is used uninitialized in this function bits is first used as the target of a +=.
bah, paste-o.
Created attachment 4944 [details] [review] Different fix, from Keith Packard
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
The second patch here looks like it's been applied. Closing.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.