Force update of decoration pixmap in setGeometry when maximize state is changed even if the size is

not, to handle changes in decoration pixelMetrics right.
BUG: 223060

svn path=/trunk/KDE/kdebase/workspace/; revision=1078325
icc-effect-5.14.5
Hugo Pereira Da Costa 2010-01-22 02:50:33 +00:00
parent f13d25a8df
commit 346bcc30d3
1 changed files with 10 additions and 1 deletions

View File

@ -2015,11 +2015,20 @@ void Client::setGeometry( int x, int y, int w, int h, ForceGeometry_t force )
// SELI TODO won't this be too expensive?
sendSyntheticConfigureNotify();
updateWindowRules();
// keep track of old maximize mode
// to detect changes
MaximizeMode old_mode( max_mode );
checkMaximizeGeometry();
workspace()->checkActiveScreen( this );
workspace()->updateStackingOrder();
workspace()->checkUnredirect();
if( resized )
// need to regenerate decoration pixmaps when either
// - size is changed
// - maximize mode is changed to MaximizeRestore, when size unchanged
// which can happen when untabbing maximized windows
if( resized || ( old_mode != max_mode && max_mode == MaximizeRestore ) )
{
discardWindowPixmap();
if( scene != NULL )