r866586
Avoid drawing corruptions caused by window geometry and shape being out of sync (bnc#430472). svn path=/branches/KDE/4.1/kdebase/workspace/; revision=866589
This commit is contained in:
parent
b63d9049fc
commit
a8366d49dd
1 changed files with 2 additions and 0 deletions
|
@ -355,6 +355,8 @@ QRegion Scene::Window::shape() const
|
|||
shape_region += QRegion( rects[ i ].x, rects[ i ].y,
|
||||
rects[ i ].width, rects[ i ].height );
|
||||
XFree(rects);
|
||||
// make sure the shape is sane (X is async, maybe even XShape is broken)
|
||||
shape_region &= QRegion( 0, 0, width(), height());
|
||||
}
|
||||
else
|
||||
shape_region = QRegion();
|
||||
|
|
Loading…
Reference in a new issue