summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2006-04-13 16:12:36 +0000
committerSilenio Quarti <silenio>2006-04-13 16:12:36 +0000
commit1c01b7362f68a6b50ba6deae90121974bb0ef291 (patch)
tree24e094f55fd2446a5e485b26a5365ca9a0e8d774 /bundles
parent9a1f528ae2b13f17ce3f49b67a48708a798bfbd3 (diff)
downloadeclipse.platform.swt-1c01b7362f68a6b50ba6deae90121974bb0ef291.tar.gz
eclipse.platform.swt-1c01b7362f68a6b50ba6deae90121974bb0ef291.tar.xz
eclipse.platform.swt-1c01b7362f68a6b50ba6deae90121974bb0ef291.zip
isUndecorated()
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java10
1 files changed, 7 insertions, 3 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 2656438d83..4e75c5d4fa 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
@@ -618,9 +618,8 @@ void createHandle (int index) {
* resource. The fix is to treat the window as if it has been
* reparented by the Window Manager despite the fact that this
* has not really happened.
- */
- int orientations = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;
- if ((style & ~orientations) == SWT.NONE || (style & (SWT.NO_TRIM | SWT.ON_TOP)) != 0) {
+ */
+ if (isUndecorated ()) {
reparented = true;
}
@@ -1046,6 +1045,11 @@ boolean isModal () {
OS.XtGetValues (shellHandle, argList, argList.length / 2);
return (argList [1] != -1 && argList [1] != OS.MWM_INPUT_MODELESS);
}
+boolean isUndecorated () {
+ return
+ (style & (SWT.SHELL_TRIM | SWT.BORDER)) == SWT.NONE ||
+ (style & (SWT.NO_TRIM | SWT.ON_TOP)) != 0;
+}
public boolean isVisible () {
checkWidget();
return getVisible ();