Alexandre Julliard : winex11: Ignore ConfigureNotify events when a window is iconified.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 06:50:06 CDT 2008
Module: wine
Branch: master
Commit: f6662c7bbec5eb010f5d4cd4844758fdaba4fa0a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6662c7bbec5eb010f5d4cd4844758fdaba4fa0a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Apr 4 18:22:23 2008 +0200
winex11: Ignore ConfigureNotify events when a window is iconified.
---
dlls/winex11.drv/winpos.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 1779b45..25f7413 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 */
More information about the wine-cvs
mailing list