From 18c3f4d712b9916fd2746ba7060593e8b01f8e87 Mon Sep 17 00:00:00 2001 From: culler Date: Thu, 29 Apr 2021 14:40:13 +0000 Subject: Synchonize the needsDisplay for the NSView and its backing layer. --- macosx/tkMacOSXNotify.c | 1 + macosx/tkMacOSXWindowEvent.c | 1 + 2 files changed, 2 insertions(+) diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c index 0438525..208d846 100644 --- a/macosx/tkMacOSXNotify.c +++ b/macosx/tkMacOSXNotify.c @@ -379,6 +379,7 @@ TkMacOSXDrawAllViews( continue; } [[view layer] setNeedsDisplayInRect:[view tkDirtyRect]]; + [view setNeedsDisplay:YES]; } } else { [window displayIfNeeded]; diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index fe8a983..f7a160a 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -954,6 +954,7 @@ ConfigureRestrictProc( _tkDirtyRect = NSUnionRect(_tkDirtyRect, rect); [NSApp setNeedsToDraw:YES]; [self setNeedsDisplay:YES]; + [[self layer] setNeedsDisplay]; } - (void) clearTkDirtyRect -- cgit v0.12