From fafaf8bf9e191f4837a305f71d662d46e1a7fb4c Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sun, 6 Sep 2009 17:38:33 +0000 Subject: [PATCH] apply additional horizontal button offset only in 'Full' maximized mode, and when maximized window are not move/resizable svn path=/trunk/KDE/kdebase/workspace/; revision=1020594 --- clients/nitrogen/nitrogenbutton.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/nitrogen/nitrogenbutton.cpp b/clients/nitrogen/nitrogenbutton.cpp index 89bd124bbf..435262b1d8 100644 --- a/clients/nitrogen/nitrogenbutton.cpp +++ b/clients/nitrogen/nitrogenbutton.cpp @@ -165,6 +165,7 @@ namespace Nitrogen if(client_.isActive() && client_.configuration().drawSeparator() && !client_.configuration().drawTitleOutline() ) { helper_.drawSeparator(&painter, QRect(x, titleHeight-1.5, w, 2), color, Qt::Horizontal); } + // for menu button the application icon is used if (type_ == ButtonMenu) { @@ -181,8 +182,8 @@ namespace Nitrogen else color = KColorScheme(palette.currentColorGroup()).decoration(KColorScheme::HoverColor).color(); } - // translate buttons up if window is not maximized - if(client_.maximizeMode() == NitrogenClient::MaximizeRestore) + // translate buttons up if window maximized + if(client_.isMaximized()) { painter.translate( 0, -1 ); } // button shape color