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:
Rik Hemsley 2000-10-31 02:48:56 +00:00
parent 25c292f3a1
commit 907efe6764

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