summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorculler <culler>2020-06-07 22:19:45 (GMT)
committerculler <culler>2020-06-07 22:19:45 (GMT)
commit8b94c471d7cb1f24b1e22e5c64f90197d220fbe2 (patch)
tree51a5cb6779b423e155ff2cd2051112bdfcd771f8 /macosx/tkMacOSXWindowEvent.c
parent94df92d713ad84ae1e93183be6a9927209783795 (diff)
downloadtk-8b94c471d7cb1f24b1e22e5c64f90197d220fbe2.zip
tk-8b94c471d7cb1f24b1e22e5c64f90197d220fbe2.tar.gz
tk-8b94c471d7cb1f24b1e22e5c64f90197d220fbe2.tar.bz2
Fix the Redisplay to make new windows complete.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 07965f0..9edbd69 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -968,13 +968,11 @@ ConfigureRestrictProc(
[NSApp setIsDrawing: YES];
[self clearTkDirtyRect];
[self generateExposeEvents:rect];
- [self setTkNeedsDisplay: NO];
- [NSApp setIsDrawing: NO];
-
if ([self needsRedisplay]) {
[self setNeedsRedisplay:NO];
- Tcl_DoWhenIdle(TkMacOSXDrawAllViews, NULL);
+ [self addTkDirtyRect: [self bounds]];
}
+ [NSApp setIsDrawing:NO];
#ifdef TK_MAC_DEBUG_DRAWING
fprintf(stderr, "drawRect: done.\n");