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:
parent
119aa760c7
commit
01bf9c9334
1 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue