winex11: Avoid updating the wm states inside a ConfigureNotify event.
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 00650eb..1779b45 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -426,6 +426,7 @@
             wine_tsx11_unlock();
             data->mapped = TRUE;
             data->iconic = (new_style & WS_MINIMIZE) != 0;
+            update_net_wm_states( display, data );
         }
         else if ((swp_flags & SWP_STATECHANGED) && (!data->iconic != !(new_style & WS_MINIMIZE)))
         {
@@ -437,8 +438,12 @@
             else if (X11DRV_is_window_rect_mapped( rectWindow ))
                 XMapWindow( display, data->whole_window );
             wine_tsx11_unlock();
+            update_net_wm_states( display, data );
         }
-        update_net_wm_states( display, data );
+        else if (!event_type)
+        {
+            update_net_wm_states( display, data );
+        }
     }
 }