summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets
diff options
context:
space:
mode:
authorSilenio Quarti <silenio_quarti@ca.ibm.com>2012-01-31 16:33:09 -0500
committerSilenio Quarti <silenio_quarti@ca.ibm.com>2012-01-31 16:33:09 -0500
commit49414e687e8dd970398fad4ea36d97ab635cb3a8 (patch)
treef044e11535e5b3b2c17edeaa91fc7405e8b7f7b5 /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets
parent92000571a779c912f9d2bbe1c98caf331818d15b (diff)
downloadeclipse.platform.swt-49414e687e8dd970398fad4ea36d97ab635cb3a8.tar.gz
eclipse.platform.swt-49414e687e8dd970398fad4ea36d97ab635cb3a8.tar.xz
eclipse.platform.swt-49414e687e8dd970398fad4ea36d97ab635cb3a8.zip
Bug 369599 - Weird window flash when opening tooltip
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java5
1 files changed, 4 insertions, 1 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 eb12628c08..3092d2897c 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
@@ -2105,8 +2105,11 @@ public int /*long*/ internal_new_GC (GCData data) {
* to create a GC on a deferred NSWindow.
*/
if (window.windowNumber() <= 0) {
+ float /*double*/ alpha = window.alphaValue();
+ window.setAlphaValue(0);
window.orderBack(null);
- window.orderOut(null);
+ window.orderOut(null);
+ window.setAlphaValue(alpha);
}
NSGraphicsContext graphicsContext = NSGraphicsContext.graphicsContextWithWindow (window);
NSGraphicsContext flippedContext = NSGraphicsContext.graphicsContextWithGraphicsPort(graphicsContext.graphicsPort(), true);