Repaint decoration after configuration change when it doesn't need a reset.

svn path=/trunk/KDE/kdebase/workspace/; revision=788371
This commit is contained in:
Luboš Luňák 2008-03-21 12:57:41 +00:00
parent da0b861690
commit fbbe94753e
3 changed files with 9 additions and 0 deletions

View file

@ -410,6 +410,12 @@ bool Client::checkBorderSizes( bool also_resize )
return true;
}
void Client::repaintDecoration()
{
if( decoration != NULL )
decoration->widget()->update();
}
void Client::detectNoBorder()
{
if( shape())

View file

@ -196,6 +196,7 @@ class Client
void updateDecoration( bool check_workspace_pos, bool force = false );
bool checkBorderSizes( bool also_resize );
void repaintDecoration();
void updateShape();

View file

@ -1011,6 +1011,8 @@ void Workspace::slotReconfigure()
else
{
forEachClient( CheckBorderSizesProcedure());
foreach( Client* c, clients )
c->repaintDecoration();
}
if( options->electricBorders() == Options::ElectricAlways )