summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Northover <steve>2005-05-25 23:46:00 +0000
committerSteve Northover <steve>2005-05-25 23:46:00 +0000
commitcfc333bbe2b128a115e5de12123e48f467e87945 (patch)
treea2ec1d650ac4e962b5865b5d9baa3be3645f4303
parent12a649b4814f1676eece36071bf6528aad9aaf99 (diff)
downloadeclipse.platform.swt-cfc333bbe2b128a115e5de12123e48f467e87945.tar.gz
eclipse.platform.swt-cfc333bbe2b128a115e5de12123e48f467e87945.tar.xz
eclipse.platform.swt-cfc333bbe2b128a115e5de12123e48f467e87945.zip
4414 - make open() consistent
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java
index 740cc861bc..4563ba446f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java
@@ -486,6 +486,7 @@ void bringToTop (boolean force) {
int handle = OS.XtWindowToWidget (xDisplay, buffer1 [0]);
if (handle == 0) return;
}
+ OS.XRaiseWindow (xDisplay, xWindow);
OS.XSetInputFocus (xDisplay, xWindow, OS.RevertToParent, OS.CurrentTime);
}
void checkOpen () {
@@ -1068,6 +1069,7 @@ void manageChildren () {
*/
public void open () {
checkWidget();
+ bringToTop (false);
setVisible (true);
if (isDisposed ()) return;
if (!restoreFocus () && !traverseGroup (true)) setFocus ();