fix #1 for message queue migration
eric pouech
eric.pouech at wanadoo.fr
Sat May 19 09:16:37 CDT 2001
I think this is the proper fix now... (see wine devel for the details)
A+
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Name: mqs1
ChangeLog: fixed a bit the queue management since moved to the server
GenDate: 2001/05/19 14:13:44 UTC
ModifiedFiles: windows/winpos.c
AddedFiles:
===================================================================
RCS file: /usr/share/cvs/cvsroot/wine/wine/windows/winpos.c,v
retrieving revision 1.99
diff -u -u -r1.99 winpos.c
--- windows/winpos.c 2001/05/16 19:52:31 1.99
+++ windows/winpos.c 2001/05/19 14:07:40
@@ -2150,6 +2150,25 @@
INT x, INT y, INT cx, INT cy, UINT flags )
{
WINDOWPOS winpos;
+ WND *wndPtr = WIN_FindWndPtr(hwnd);
+
+ if (wndPtr)
+ {
+ /* if window is about to be hidden, then we must clear any pending pending paint
+ * operation and information
+ * Those will be restored when window is displayed again
+ */
+ if ((wndPtr->dwStyle & WS_VISIBLE) &&
+ (flags & SWP_HIDEWINDOW) &&
+ ((wndPtr->flags & WIN_INTERNAL_PAINT) || wndPtr->hrgnUpdate))
+ {
+ if (wndPtr->hrgnUpdate) DeleteObject(wndPtr->hrgnUpdate);
+ wndPtr->hrgnUpdate = 0;
+ wndPtr->flags &= ~WIN_INTERNAL_PAINT;
+ QUEUE_DecPaintCount(wndPtr->hmemTaskQ);
+ }
+ WIN_ReleaseWndPtr(wndPtr);
+ }
winpos.hwnd = hwnd;
winpos.hwndInsertAfter = hwndInsertAfter;
More information about the wine-patches
mailing list