Project: SWT
Bug 78407 Platform differences setting size while shell is maximized
Reported: 2004-11-11 13:07:21 | Status: resolved fixed

Here is the some code: public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); shell.setBounds (10, 10, 100, 100); shell.open (); shell.addListener (SWT.Resize, new Listener () { public void handleEvent (Event event) { System.out.println ("*** RESIZE: " + shell.getBounds ()); shell.setBounds (shell.getBounds ()); } }); shell.addListener (SWT.MouseDown, new Listener () { public void handleEvent (Event event) { shell.setBounds (100, 100, 200, 200); } }); while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Decorations.java