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
This commit is contained in:
Hugo Pereira Da Costa 2010-04-30 19:12:17 +00:00
parent 73c39daaaa
commit 81e2b18888

View file

@ -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
{