Inspired by Knut Johansson's patch:

Fix the decoration preview of decorations like Quartz and Web when custom
button positions get disabled. They rely on titleButtonsLeft()/Right()
returning the default value described in the API docs.

svn path=/trunk/kdebase/kwin/; revision=386102
icc-effect-5.14.5
Sandro Giessl 2005-02-04 11:38:37 +00:00
parent 119aa760c7
commit 01bf9c9334
1 changed files with 9 additions and 4 deletions

View File

@ -458,10 +458,15 @@ unsigned long KDecorationPreviewOptions::updateSettings()
d->border_size = customBorderSize;
if (customButtonsChanged)
d->custom_button_positions = customButtons;
if (!customTitleButtonsLeft.isNull() )
d->title_buttons_left = customTitleButtonsLeft;
if (!customTitleButtonsRight.isNull() )
d->title_buttons_right = customTitleButtonsRight;
if (customButtons) {
if (!customTitleButtonsLeft.isNull() )
d->title_buttons_left = customTitleButtonsLeft;
if (!customTitleButtonsRight.isNull() )
d->title_buttons_right = customTitleButtonsRight;
} else {
d->title_buttons_left = "MS";
d->title_buttons_right = "HIAX";
}
return changed;
}