more robust
svn path=/trunk/kdebase/kwin/; revision=35394
This commit is contained in:
parent
91d73bedca
commit
ce152850cb
1 changed files with 5 additions and 0 deletions
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in a new issue