diff options
author | culler <culler> | 2021-04-29 14:40:13 (GMT) |
---|---|---|
committer | culler <culler> | 2021-04-29 14:40:13 (GMT) |
commit | 18c3f4d712b9916fd2746ba7060593e8b01f8e87 (patch) | |
tree | 500513d3f0f15034b8baec8dbae258d0136ee8cd /macosx | |
parent | 4d1967bac73880c706d9c1c5b11388e97a695faa (diff) | |
download | tk-18c3f4d712b9916fd2746ba7060593e8b01f8e87.zip tk-18c3f4d712b9916fd2746ba7060593e8b01f8e87.tar.gz tk-18c3f4d712b9916fd2746ba7060593e8b01f8e87.tar.bz2 |
Synchonize the needsDisplay for the NSView and its backing layer.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXNotify.c | 1 | ||||
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 1 |
2 files changed, 2 insertions, 0 deletions
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 |