From a8366d49ddfc081f505ced08ebe101a6088f6aa0 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:55:44 +0000 Subject: [PATCH] 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 --- scene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene.cpp b/scene.cpp index 5c48cdc40e..9a9d3deabd 100644 --- a/scene.cpp +++ b/scene.cpp @@ -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();