"Sebastian Reichelt" <[EMAIL PROTECTED]> wrote:

+    if (winpos->flags & SWP_FRAMECHANGED)
+    {
+        DWORD style = GetWindowLongW( winpos->hwnd, GWL_STYLE );
+        X11DRV_set_iconic_state( winpos->hwnd );
+        if (style & WS_MINIMIZE)
+            return TRUE;
+    }
+
     if (!SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect )) 
return FALSE;
/* Fix redundant flags */

X11DRV_set_iconic_state() call should be moved under the 'if' case.
Next, you can't really avoid calling SWP_DoWinPosChanging and probably
sending WM_WINDOWPOSCHANGED. This behaviour needs a good test case.

--
Dmitry.


Reply via email to