more robust

svn path=/trunk/kdebase/kwin/; revision=35394
icc-effect-5.14.5
Matthias Ettrich 1999-11-29 03:01:09 +00:00
parent 91d73bedca
commit ce152850cb
1 changed files with 5 additions and 0 deletions

View File

@ -1364,6 +1364,11 @@ void Client::setShade( bool s )
} while ( h > s.height() + step );
clearWFlags( WNorthWestGravity );
resize (s );
XEvent tmpE;
do {
XWindowEvent (qt_xdisplay(), windowWrapper()->winId(),
SubstructureNotifyMask, &tmpE);
} while ( tmpE.type != UnmapNotify || tmpE.xunmap.window != win );
} else {
int h = height();
QSize s( sizeForWindowSize( windowWrapper()->size(), TRUE ) );