From ce152850cb9cc962d9be5e6b723ea656ea940bb3 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Mon, 29 Nov 1999 03:01:09 +0000 Subject: [PATCH] more robust svn path=/trunk/kdebase/kwin/; revision=35394 --- client.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client.cpp b/client.cpp index 3e84eaf0cd..6729aa9789 100644 --- a/client.cpp +++ b/client.cpp @@ -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 ) );