From c9490235cdfc73728ce61d80333889caeb1c9201 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Wed, 7 Apr 2010 21:23:38 +0000 Subject: [PATCH] fixed background positionning when title bar is hidden svn path=/trunk/KDE/kdebase/workspace/; revision=1112325 --- clients/oxygen/oxygenclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index a0bb9820ad..92d092d333 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -573,7 +573,8 @@ namespace Oxygen } else { int offset = layoutMetric( LM_OuterPaddingTop ); - int height = 64 + configuration().buttonSize() - OxygenConfiguration::ButtonDefault; + int height = 64 - OxygenConfiguration::ButtonDefault; + if( !configuration().hideTitleBar() ) height += configuration().buttonSize(); const QWidget* window( isPreview() ? OxygenClient::widget() : widget->window() ); helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );