summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-11-18 14:46:46 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-11-18 14:46:46 (GMT)
commit0e22d8ae3dcf3f15ae9df9bab55581868f8dbf5a (patch)
tree0abc8b043398f96c58d8c121f612826785a992be /macosx/tkMacOSXWindowEvent.c
parent47855ace43a7f946266bfc62a9cb919d478c9580 (diff)
downloadtk-0e22d8ae3dcf3f15ae9df9bab55581868f8dbf5a.zip
tk-0e22d8ae3dcf3f15ae9df9bab55581868f8dbf5a.tar.gz
tk-0e22d8ae3dcf3f15ae9df9bab55581868f8dbf5a.tar.bz2
Remove residual private API calls from Tk/Mac after Mac App Store review flagged them as being present.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index d016790..361b2e2 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -831,7 +831,11 @@ ExposeRestrictProc(
HIShapeUnionWithRect(drawShape, &r);
}
if (CFRunLoopGetMain() == CFRunLoopGetCurrent()) {
- [self generateExposeEvents:drawShape];
+ if (!_in_event) {
+ _in_event = true;
+ [self generateExposeEvents:drawShape];
+ _in_event = false;
+ }
} else {
[self performSelectorOnMainThread:@selector(generateExposeEvents:)
withObject:(id)drawShape waitUntilDone:NO