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
icc-effect-5.14.5
Rik Hemsley 2000-10-31 02:48:56 +00:00
parent 25c292f3a1
commit 907efe6764
1 changed files with 6 additions and 1 deletions

View File

@ -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_);