From 4f8f89cf46c8eef8031d67c179924690882e0dac Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Wed, 1 Oct 2003 12:55:55 +0000 Subject: [PATCH] CCMAIL: kwin@kde.org 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 --- clients/b2/b2client.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index a97822d59f..a62c0881d9 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -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