diff options
author | culler <culler> | 2021-04-24 19:47:30 (GMT) |
---|---|---|
committer | culler <culler> | 2021-04-24 19:47:30 (GMT) |
commit | e3f627385b02a29326439ffe0159930466944f6a (patch) | |
tree | 5bfc8d0d039e088f78ba455608f4093cd736b7a1 /macosx/tkMacOSXNotify.c | |
parent | 64594c2a80336e1a00dc711942a4ed5fb5dd0e98 (diff) | |
download | tk-e3f627385b02a29326439ffe0159930466944f6a.zip tk-e3f627385b02a29326439ffe0159930466944f6a.tar.gz tk-e3f627385b02a29326439ffe0159930466944f6a.tar.bz2 |
Possibly a genuine fix - use an explicit CALayer for the TKContentView.
Diffstat (limited to 'macosx/tkMacOSXNotify.c')
-rw-r--r-- | macosx/tkMacOSXNotify.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c index f32fa76..0438525 100644 --- a/macosx/tkMacOSXNotify.c +++ b/macosx/tkMacOSXNotify.c @@ -340,8 +340,9 @@ TkMacOSXNotifyExitHandler( * for all views that need display before it returns. We call it with * deQueue=NO so that it will not change anything on the AppKit event * queue, because we only want the side effect that it runs drawRect. The - * only time when any NSViews have the needsDisplay property set to YES - * is during execution of this function. + * only times when any NSViews have the needsDisplay property set to YES + * are during execution of this function or in the addDirtyRect method + * of TKContentView. * * The reason for running this function as an idle task is to try to * arrange that all widgets will be fully configured before they are @@ -377,7 +378,7 @@ TkMacOSXDrawAllViews( if (dirtyCount) { continue; } - [view setNeedsDisplayInRect:[view tkDirtyRect]]; + [[view layer] setNeedsDisplayInRect:[view tkDirtyRect]]; } } else { [window displayIfNeeded]; |