From 81e2b188883a238def51b3b98e7d4bc974acc391 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 30 Apr 2010 19:12:17 +0000 Subject: [PATCH] Properly account for windeco padding, when deciding which parts of the decoration are to be drawn in "buildQuads" method. Bug: 235820 svn path=/trunk/KDE/kdebase/workspace/; revision=1121191 --- scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene.cpp b/scene.cpp index 54512ac54f..32436c6d47 100644 --- a/scene.cpp +++ b/scene.cpp @@ -486,7 +486,7 @@ WindowQuadList Scene::Window::buildQuads( bool force ) const if( cached_quad_list != NULL && !force ) return *cached_quad_list; WindowQuadList ret; - if( toplevel->clientPos() == QPoint( 0, 0 ) && toplevel->clientSize() == toplevel->size()) + if( toplevel->clientPos() == QPoint( 0, 0 ) && toplevel->clientSize() == toplevel->visibleRect().size()) ret = makeQuads( WindowQuadContents, shape()); // has no decoration else {