Only show the maximized state if the maximizeMode is MaximizeFull. Other

decorations seem to do it right.

BUG: 97681

svn path=/trunk/kdebase/kwin/; revision=381966
This commit is contained in:
Sandro Giessl 2005-01-24 15:28:52 +00:00
parent 0111c7430b
commit 1d8bbaf6ff

View file

@ -775,8 +775,8 @@ void PlastikClient::maximizeChange()
if (!PlastikHandler::initialized()) return;
if( m_button[MaxButton] ) {
m_button[MaxButton]->setOn( maximizeMode()!=MaximizeRestore);
m_button[MaxButton]->setTipText( (maximizeMode()==MaximizeRestore) ?
m_button[MaxButton]->setOn( maximizeMode()==MaximizeFull);
m_button[MaxButton]->setTipText( (maximizeMode()!=MaximizeFull) ?
i18n("Maximize")
: i18n("Restore"));
}