Enable sending WM_SIZE also at max/minimization (solves Wine Bug 4964)

Juris Smotrovs juris.smotrovs at sets.lv
Fri Mar 31 08:58:26 CST 2006


Changelog:

Juris Smotrovs <juris.smotrovs at sets.lv>

Send WM_SIZE not only when size in pixels changes, but also when
window gets max/minimized (removed inhibiting flag).
**********************

Index: dlls/x11drv/winpos.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.146
diff -u -r1.146 winpos.c
--- dlls/x11drv/winpos.c	7 Mar 2006 12:13:45 -0000	1.146
+++ dlls/x11drv/winpos.c	31 Mar 2006 14:33:25 -0000
@@ -412,6 +412,9 @@
      if ((wndPtr->rectWindow.left == winpos->x) && (wndPtr->rectWindow.top == winpos->y))
          winpos->flags |= SWP_NOMOVE;    /* Already the right position */

+    if (wndPtr->dwStyle & (WS_MINIMIZE | WS_MAXIMIZE))
+        winpos->flags &= ~SWP_NOCLIENTSIZE; /* Enable sending WM_SIZE if window was min/maximized */
+
      if ((wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD)
      {
          if (!(winpos->flags & (SWP_NOACTIVATE|SWP_HIDEWINDOW))) /* Bring to the top when activating */



More information about the wine-patches mailing list