Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2008-07-16 16:00:56 +0000
committerSilenio Quarti2008-07-16 16:00:56 +0000
commitab5f809a36315ad5857453f35067dbbb901e79ce (patch)
tree5bae1fbc6609f54599b6843731c65a2beadfb67b /bundles/org.eclipse.swt/Eclipse SWT
parentafe01775f2824b1531eb0878d2c5b509289b38f5 (diff)
downloadeclipse.platform.swt-ab5f809a36315ad5857453f35067dbbb901e79ce.tar.gz
eclipse.platform.swt-ab5f809a36315ad5857453f35067dbbb901e79ce.tar.xz
eclipse.platform.swt-ab5f809a36315ad5857453f35067dbbb901e79ce.zip
tooltip shell getting paint before shells is visible
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index 72dbc94161..2018eb420a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -499,6 +499,7 @@ void createHandle () {
window.setLevel(OS.NSFloatingWindowLevel);
}
super.createHandle ();
+ topView ().setHidden (true);
}
window.setAcceptsMouseMovedEvents(true);
windowDelegate = (SWTWindowDelegate)new SWTWindowDelegate().alloc().init();
@@ -1320,6 +1321,7 @@ void setWindowVisible (boolean visible, boolean key) {
if (visible) {
sendEvent (SWT.Show);
if (isDisposed ()) return;
+ topView ().setHidden (false);
if (key) {
window.makeKeyAndOrderFront (null);
} else {
@@ -1342,6 +1344,7 @@ void setWindowVisible (boolean visible, boolean key) {
}
} else {
window.orderOut (null);
+ topView ().setHidden (true);
sendEvent (SWT.Hide);
}
}

Back to the top