[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/workspace/kwin/clients/oxygen
From:       Hugo Pereira Da Costa <hugo.pereira () free ! fr>
Date:       2010-04-07 21:25:00
Message-ID: 20100407212500.89204AC892 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1112328 by hpereiradacosta:

Backport r1112325
fixed background positionning when title bar is hidden



 M  +2 -1      oxygenclient.cpp  


--- branches/KDE/4.4/kdebase/workspace/kwin/clients/oxygen/oxygenclient.cpp #1112327:1112328
@@ -573,7 +573,8 @@
     } 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 );
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic