From 2e8bf0670b941c095a40ed4d105ee7470ae806d3 Mon Sep 17 00:00:00 2001 From: wordtech Date: Thu, 6 Jan 2011 00:15:24 +0000 Subject: Fix for 3086887, speeds up scrolling --- macosx/tkMacOSXWindowEvent.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index b17f97b..26bd064 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.39 2011/01/04 22:36:58 wordtech Exp $ + * RCS: @(#) $Id: tkMacOSXWindowEvent.c,v 1.40 2011/01/06 00:15:24 wordtech Exp $ */ #include "tkMacOSXPrivate.h" @@ -345,10 +345,7 @@ GenerateUpdates( return 0; } HIShapeGetBounds(damageRgn, &damageBounds); - if (!Tk_IsTopLevel(winPtr)) { - ChkErr(TkMacOSHIShapeUnion, boundsRgn, updateRgn, updateRgn); - HIShapeGetBounds(updateRgn, updateBounds); - } + CFRelease(damageRgn); CFRelease(boundsRgn); -- cgit v0.12