Cygwin/X: Respect the system's ownership of the clipping region

Respect the system's ownership of the clipping region used for shaped windows

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
Jon TURNEY 2010-02-02 15:42:12 +00:00
parent bad41bdfd4
commit 7eb840fd42

View File

@ -71,6 +71,9 @@ winUpdateRgnMultiWindow (WindowPtr pWin)
{
SetWindowRgn (winGetWindowPriv(pWin)->hWnd,
winGetWindowPriv(pWin)->hRgn, TRUE);
/* The system now owns the region specified by the region handle and will delete it when it is no longer needed. */
winGetWindowPriv(pWin)->hRgn = NULL;
}