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
This commit is contained in:
Sandro Giessl 2005-02-04 11:38:37 +00:00
parent 119aa760c7
commit 01bf9c9334

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;
}