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
How to Stop Playback of Avplayerviewcontroller as UIviewrepresentable After Dismissal
Is There an Object Class in Swift
Adding Data to a Specific UId in Firebase
Validatemenuitem or Menuwillopen Not Called for Nsmenu
Touch Sprite, Make It Jump Up Then Fall Down Again(Repeat as Many Times as Spritenode Is Tapped.)
Decrypting Des with Commoncrypto in Swift 3
Bold Words That Start with Letter
Populating Collection View from Array in Document Directory
Error: Missing Return in a Closure Expected to Return 'Uiviewcontroller' (Xcode, Swift, iOS 13)
Swift's Decimal Precision Issue
Swift Ensembles Set Up & Ubiquitycontaineridentifier
How to Drag a Working Slider Using Swiftui
Access Safari Bookmarks in Macos Mojave Programmatically
In Swift Can You Trap "Fatal Error Unexpectedly Found Nil While Unwrapping an Optional Value"