Avoid drawing corruptions caused by window geometry and shape

being out of sync (bnc#430472).


svn path=/trunk/KDE/kdebase/workspace/; revision=866586
remotes/origin/Plasma/5.0
Luboš Luňák 18 years ago
parent b7122a91b1
commit 402ea46332
  1. 2
      scene.cpp

@ -383,6 +383,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…
Cancel
Save