From f6662c7bbec5eb010f5d4cd4844758fdaba4fa0a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 4 Apr 2008 18:22:23 +0200 Subject: [PATCH] winex11: Ignore ConfigureNotify events when a window is iconified. --- dlls/winex11.drv/winpos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c index 1779b4502a4..25f7413dbcc 100644 --- a/dlls/winex11.drv/winpos.c +++ b/dlls/winex11.drv/winpos.c @@ -549,7 +549,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev ) if (!hwnd) return; if (!(data = X11DRV_get_win_data( hwnd ))) return; - if (!data->mapped) return; + if (!data->mapped || data->iconic) return; /* Get geometry */ @@ -586,7 +586,6 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev ) hwnd, rect.left, rect.top, x, y ); if ((rect.right - rect.left == cx && rect.bottom - rect.top == cy) || - IsIconic(hwnd) || (IsRectEmpty( &rect ) && event->width == 1 && event->height == 1)) { if (flags & SWP_NOMOVE) return; /* if nothing changed, don't do anything */