Fixed the misrendered shaded border.
For me, the problem was fixed by redoing the layout in the shapeChange()
function. Maybe the other styles have to modified in a similar way.

I'd like to reduce the width of the window border to the titlebar width only,
instead of the full window border. In the BeeToo, I obtain a similar effect by
painting the titlebar only, but the trick is revealed by the window snap zones,
and the transparent border. Is there a way to do this cleanly with current kwin?

svn path=/trunk/kdebase/kwin/; revision=255364
This commit is contained in:
Luciano Montanaro 2003-10-01 12:55:55 +00:00
parent bd4789e32b
commit 4f8f89cf46

View file

@ -696,11 +696,6 @@ void B2Client::showEvent(QShowEvent *ev)
titlebar->repaint(false);
}
void B2Client::windowWrapperShowEvent( QShowEvent* )
{
doShape();
}
KDecoration::MousePosition B2Client::mousePosition( const QPoint& p ) const
{
const int range = 16;
@ -814,6 +809,9 @@ void B2Client::activeChange()
void B2Client::shadeChange()
{
spacer->changeSize(10, isResizable() ? 8 : 4,
QSizePolicy::Expanding, QSizePolicy::Minimum);
g->activate();
}
QSize B2Client::minimumSize() const