Open SyntevoAlex opened 1 year ago
I don't plan to prepare a fix for this any soon.
I don't plan to prepare a fix for this any soon.
There's a solution for this situation:
Issue issue726 = new Issue();
SyntevoAlex syntevoAlex2 = SyntevoAlex.clone();
syntevoAlex2.fix(issue726);
Describe the bug In GTK,
Shell.bringToTop()
optimistically sets active shell tothis
: https://github.com/eclipse-platform/eclipse.platform.swt/blob/24247323f81c3fe5fa231f3ccd6ad8eb36a6c97b/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/Shell.java#L638-L639This causes it to 1) Report shell as already active too early 2) If Linux window manager decides NOT to activate shell, it will report wrong shell
Note that
Shell.bringToTop()
is called from various places, notablyShell.open()
To Reproduce
Expected behavior Correct Shell shall be reported by
Display.getActiveShell()
Environment:
Workaround Wait until
SWT.Activate
is really received before thinking that new shell has been activated.