From 402ea463323ebfd07ed336644bd1964c3b52736a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 1 Oct 2008 11:53:48 +0000 Subject: [PATCH] Avoid drawing corruptions caused by window geometry and shape being out of sync (bnc#430472). svn path=/trunk/KDE/kdebase/workspace/; revision=866586 --- scene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene.cpp b/scene.cpp index ea16c5b7e4..04b844768f 100644 --- a/scene.cpp +++ b/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();