diff options
author | Grant Gayed | 2005-03-10 20:46:56 +0000 |
---|---|---|
committer | Grant Gayed | 2005-03-10 20:46:56 +0000 |
commit | 6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed (patch) | |
tree | 966f65430d2cb323843762c1669729f69ceffa87 | |
parent | 051d54ee51e12d4bd6a9a961901d770b51e0da03 (diff) | |
download | eclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.tar.gz eclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.tar.xz eclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.zip |
79934v3064a
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java | 11 |
1 files changed, 1 insertions, 10 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 a97cd331bd..133ba3cc80 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 @@ -722,13 +722,6 @@ public void dispose () { // Display oldDisplay = display; /* - * Feature in Motif. When an override-redirected shell - * is disposed, Motif does not assign a new active top - * level shell. The parent shell appears to be active, - * but XGetInputFocus returns the root window, not the - * parent. The fix is to make the parent be the active - * top level shell when the child shell is disposed. - * * Feature in Motif. When the active shell is disposed, * Motif assigns focus temporarily to the root window * unless it has previously been told to do otherwise. @@ -736,10 +729,8 @@ public void dispose () { * shell when the child shell is disposed. */ if (parent != null) { - int [] argList = {OS.XmNoverrideRedirect, 0}; - OS.XtGetValues (shellHandle, argList, argList.length / 2); Shell activeShell = display.getActiveShell (); - if (argList [1] != 0 || activeShell == this) { + if (activeShell == this) { Shell shell = parent.getShell (); shell.bringToTop (false); } |