Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2005-03-10 20:46:56 +0000
committerGrant Gayed2005-03-10 20:46:56 +0000
commit6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed (patch)
tree966f65430d2cb323843762c1669729f69ceffa87
parent051d54ee51e12d4bd6a9a961901d770b51e0da03 (diff)
downloadeclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.tar.gz
eclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.tar.xz
eclipse.platform.swt-6484a8b1abe9f35a85a61d6ce61b9cd99d7c0bed.zip
79934v3064a
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java11
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);
}

Back to the top