This fixes the bug 142424 as originally reported, for the B2 decoration.

Keramic has the same issue, but the code is completely different.

The title unhiding code is still broken with Composite enabled, though.


svn path=/trunk/KDE/kdebase/workspace/; revision=671652
This commit is contained in:
Luciano Montanaro 2007-06-05 08:45:49 +00:00
parent 916b2e8009
commit 5389d4afab

View file

@ -603,8 +603,8 @@ void B2Client::resizeEvent(QResizeEvent * /*e*/)
titlebar->layout()->activate();
positionButtons();
/* may be the resize cut off some space occupied by titlebar, which
was moved, so instead of reducing it, we first try to move it */
// may be the resize cut off some space occupied by titlebar, which
// was moved, so instead of reducing it, we first try to move it
titleMoveAbs(bar_x_ofs);
doShape();
@ -613,8 +613,14 @@ void B2Client::resizeEvent(QResizeEvent * /*e*/)
void B2Client::captionChange()
{
// XXX This function and resizeEvent are quite similar.
// Factor out common code.
calcHiddenButtons();
titlebar->layout()->activate();
positionButtons();
titleMoveAbs(bar_x_ofs);
doShape();
titlebar->recalcBuffer();
titlebar->repaint();