Use QLayout::activate(). Looks like I found one of the rare cases where
it's essential. This fixes some bad redraws of the titlebar in certain hard-to-reproduce circumstances. svn path=/trunk/kdebase/kwin/; revision=69459
This commit is contained in:
parent
25c292f3a1
commit
907efe6764
1 changed files with 6 additions and 1 deletions
|
@ -247,6 +247,8 @@ Manager::updateButtonVisibility()
|
|||
close_ ->show();
|
||||
break;
|
||||
}
|
||||
|
||||
layout()->activate();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -258,7 +260,10 @@ Manager::updateTitleBuffer()
|
|||
|
||||
QRect tr = titleSpacer_->geometry();
|
||||
|
||||
titleBuf_.resize(tr.size());
|
||||
if (tr.width() == 0 || tr.height() == 0)
|
||||
titleBuf_.resize(8, 8);
|
||||
else
|
||||
titleBuf_.resize(tr.size());
|
||||
|
||||
QPainter p(&titleBuf_);
|
||||
|
||||
|
|
Loading…
Reference in a new issue