Check "unshading" by unwanted geometry change during resizing too.

svn path=/trunk/kdebase/kwin/; revision=255419
This commit is contained in:
Luboš Luňák 2003-10-01 16:04:26 +00:00
parent 74536fc72c
commit 7c751219d0

View file

@ -1060,7 +1060,15 @@ void Client::resize( int w, int h, UseGravity_t use_gravity, ForceGeometry_t for
if( !isShade())
client_size = QSize( w - border_left - border_right, h - border_top - border_bottom );
else
{
// check that the frame is not resized to full size when it should be shaded
if( !shade_geometry_change && h != border_top + border_bottom )
{
kdDebug() << "h:" << h << ":t:" << border_top << ":b:" << border_bottom << endl;
assert( false );
}
client_size = QSize( w - border_left - border_right, client_size.height());
}
updateWorkareaDiffs();
if( block_geometry == 0 )
{