summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2021-04-29 14:40:13 (GMT)
committerculler <culler>2021-04-29 14:40:13 (GMT)
commit18c3f4d712b9916fd2746ba7060593e8b01f8e87 (patch)
tree500513d3f0f15034b8baec8dbae258d0136ee8cd /macosx
parent4d1967bac73880c706d9c1c5b11388e97a695faa (diff)
downloadtk-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.c1
-rw-r--r--macosx/tkMacOSXWindowEvent.c1
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