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
This commit is contained in:
parent
f13d25a8df
commit
346bcc30d3
1 changed files with 10 additions and 1 deletions
11
geometry.cpp
11
geometry.cpp
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue