Alexandre Julliard : winex11: Ignore Map/ UnmapNotify if the window is already in the appropriate state.

Alexandre Julliard julliard at winehq.org
Wed Mar 5 06:24:13 CST 2008


Module: wine
Branch: master
Commit: db43e7a582a8567aafa5c9131c2a6d1050972647
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=db43e7a582a8567aafa5c9131c2a6d1050972647

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar  5 11:24:40 2008 +0100

winex11: Ignore Map/UnmapNotify if the window is already in the appropriate state.

---

 dlls/winex11.drv/winpos.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 1f5d843..eb96a82 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -455,6 +455,7 @@ void X11DRV_MapNotify( HWND hwnd, XEvent *event )
         if (hwndFocus && IsChild( hwnd, hwndFocus )) X11DRV_SetFocus(hwndFocus);  /* FIXME */
         return;
     }
+    if (!data->iconic) return;
 
     state = get_window_wm_state( event->xmap.display, data );
     if (state == NormalState)
@@ -502,7 +503,7 @@ void X11DRV_UnmapNotify( HWND hwnd, XEvent *event )
     int state;
 
     if (!(data = X11DRV_get_win_data( hwnd ))) return;
-    if (!data->managed || !data->mapped) return;
+    if (!data->managed || !data->mapped || data->iconic) return;
 
     state = get_window_wm_state( event->xunmap.display, data );
     if (state == IconicState)




More information about the wine-cvs mailing list