Disable Bringing App Window to Front. After Closing Another Window

How can I prevent to bring main application window to front when an additional (non modal) window closing. Mac OS, JavaFX

There is only one solution for me:
insetad of closing window, move it out of screen bounds, and when I need to show this window again - simply change it coordinates.

P.s.
On unix systems KDE do not allow to move window out of bounds, on thoses systems the window need to be moved to 0,0 position and scaled to width=1, height=1

If there is better solution, please welcome

How to prevent parent window from going into background after child is closed?

set the Main window to:

Topmost=true

This should help a little, but will not solve the issue entirely. Just keep in mind that if another application has the setting, they could end up on top of the application anyways. Let me know if this helps.

Bringing mainwindow to front after splash-screen shuts down

MainWindow = new Shell();
MainWindow.Topmost = true;
MainWindow.Show();
MainWindow.Activate();
MainWindow.Topmost = false;


Related Topics



Leave a reply



Submit