Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 209975
Collapse All | Expand All

(-)Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java (-1 / +10 lines)
Lines 1405-1411 Link Here
1405
	bringToTop (false);
1405
	bringToTop (false);
1406
	setVisible (true);
1406
	setVisible (true);
1407
	if (isDisposed ()) return;
1407
	if (isDisposed ()) return;
1408
	if (!restoreFocus () && !traverseGroup (true)) setFocus ();
1408
	if (!restoreFocus () && !traverseGroup (true)) {
1409
		/*
1410
		* If a shell is opened during the FocusOut event of 
1411
		* a widget, it is required to set focus to all shells
1412
		* except for ON_TOP shells in order to maintain 
1413
		* consistency with other platforms.
1414
		*/
1415
		if ((style & SWT.ON_TOP) == 0) display.focusEvent = SWT.None;
1416
		setFocus ();
1417
	}
1409
}
1418
}
1410
1419
1411
public boolean print (GC gc) {
1420
public boolean print (GC gc) {

Return to bug 209975