Project: SWT
Bug 186557 No Deactivate events from ON_TOP shells
Reported: 2007-05-11 09:50:18 | Status: resolved fixed

ON_TOP shells are no longer sending deactivate events. public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); final Shell ontop = new Shell(shell, SWT.ON_TOP); ontop.addListener(SWT.Deactivate, new Listener() { public void handleEvent(Event event) { System.out.println("\t\tdeactivate"); ontop.dispose(); } }); ontop.setBounds(205, 205, 100, 100); shell.setBounds(200, 200, 300, 300); shell.open(); ontop.open(); 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