diff options
author | culler <culler> | 2020-06-07 22:19:45 (GMT) |
---|---|---|
committer | culler <culler> | 2020-06-07 22:19:45 (GMT) |
commit | 8b94c471d7cb1f24b1e22e5c64f90197d220fbe2 (patch) | |
tree | 51a5cb6779b423e155ff2cd2051112bdfcd771f8 /macosx/tkMacOSXWindowEvent.c | |
parent | 94df92d713ad84ae1e93183be6a9927209783795 (diff) | |
download | tk-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.c | 6 |
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"); |