diff options
| author | Jeeeyul Lee | 2020-11-27 12:28:29 +0000 |
|---|---|---|
| committer | Lakshmi P Shanmugam | 2020-11-27 14:41:45 +0000 |
| commit | 3245fca267f65c8e358efdbdf597d388013ecea8 (patch) | |
| tree | d4984ddd17375415be47b9bb30310a0b22c44ccc | |
| parent | 00c98ee5ddea0b4de42ad5b21d0d2e7fe9feec6c (diff) | |
| download | eclipse.platform.swt-3245fca267f65c8e358efdbdf597d388013ecea8.tar.gz eclipse.platform.swt-3245fca267f65c8e358efdbdf597d388013ecea8.tar.xz eclipse.platform.swt-3245fca267f65c8e358efdbdf597d388013ecea8.zip | |
Bug 569147 - [BigSur] Control#update() causes losing dirty state without
displaying proper visual content with specific conditions.
Bigsur seems to force the use of the Automatic Deferred Painting (ADP)
mechanism. Don't do anything in update on BigSur.
Change-Id: I64d0f206c452a2ec35a4efdd941ac53156250823
Signed-off-by: Jeeeyul Lee <jeeeyul@gmail.com>
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java index 12c6633de6..533cf1aa6c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java @@ -5142,6 +5142,15 @@ public void update () { } boolean update (boolean all) { + if (OS.isBigSurOrLater()) { + /* + * Bigsur seems to force the use of the Automatic Deferred Painting mechanism. + * This behavior was applicable only for applications linked with 10.14, but with BigSur + * it seems this is forced on all applications. + * So, we don't do anything here on BigSur. + */ + return true; + } if (NSGraphicsContext.currentContext() == null) { if (!view.lockFocusIfCanDraw()) { return false; |
