Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeeeyul Lee2020-11-27 12:28:29 +0000
committerLakshmi P Shanmugam2021-02-15 20:57:44 +0000
commit6cf6f81de68006ed985bd70d657de1181cb1f107 (patch)
tree2d8f1a3df88d6eab17f386fbd39fc0c062199177
parentc4e641d3b3fe57b80004fe234deadfe5c3f58491 (diff)
downloadeclipse.platform.swt-6cf6f81de68006ed985bd70d657de1181cb1f107.tar.gz
eclipse.platform.swt-6cf6f81de68006ed985bd70d657de1181cb1f107.tar.xz
eclipse.platform.swt-6cf6f81de68006ed985bd70d657de1181cb1f107.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>(cherry picked from commit 3245fca267f65c8e358efdbdf597d388013ecea8)
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java9
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;

Back to the top