diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-02-02 15:42:12 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-02-05 18:17:30 +0000 |
commit | 7eb840fd42bc62d88fb4fcf6600546c9ff6e56be (patch) | |
tree | afac11237e055bb3620788d6198d631527b3dc84 /hw | |
parent | bad41bdfd4a12f0c92fd221bffd9f3c5e40d0fe1 (diff) |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwin/winmultiwindowshape.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowshape.c b/hw/xwin/winmultiwindowshape.c index 44007027a..353235760 100644 --- a/hw/xwin/winmultiwindowshape.c +++ b/hw/xwin/winmultiwindowshape.c @@ -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; } |