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:
parent
bad41bdfd4
commit
7eb840fd42
|
@ -71,6 +71,9 @@ winUpdateRgnMultiWindow (WindowPtr pWin)
|
||||||
{
|
{
|
||||||
SetWindowRgn (winGetWindowPriv(pWin)->hWnd,
|
SetWindowRgn (winGetWindowPriv(pWin)->hWnd,
|
||||||
winGetWindowPriv(pWin)->hRgn, TRUE);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user