diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java | 6 |
1 files changed, 5 insertions, 1 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 8a7dad3818..ec35e687c3 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 @@ -101,7 +101,7 @@ import org.eclipse.swt.events.*; */ public class Shell extends Decorations { int shellHandle, focusProxy; - boolean reparented, realized, moved, resized; + boolean reparented, realized, moved, resized, opened; int oldX, oldY, oldWidth, oldHeight; Control lastActive; Region region; @@ -485,6 +485,9 @@ void bringToTop (boolean force) { } OS.XSetInputFocus (xDisplay, xWindow, OS.RevertToParent, OS.CurrentTime); } +void checkOpen () { + if (!opened) resized = false; +} /** * Requests that the window manager close the receiver in * the same way it would be closed when the user clicks on @@ -1492,6 +1495,7 @@ public void setVisible (boolean visible) { if ((style & mask) != 0) { OS.XUngrabPointer (display.xDisplay, OS.CurrentTime); } + opened = true; if (!moved) { moved = true; Point location = getLocation (); |