errael opened a new pull request, #4714: URL: https://github.com/apache/netbeans/pull/4714
I've been running with this patch for over 6 months (since I started using multiple screens). It allows the user to specify a "preferred screen", this is the screen that NetBeans starts up in. First looks for an environment variable `NETBEANS_PREFERRED_SCREEN`, if found use the numeric value as index into ScreenDevices; if not found then try for a SystemProperty by that name. Originally I was considering a PR with this and other fixes for dialogs that open up on the _wrong_ screen, typically that would be screen 0 when NetBeans' main window is on screen 1. I'm opening this as a draft PR, though it could be merged as is, or maybe extended with related changes. It provides some context/reference for stuff I'm looking at. Looking for some opinions/comments about this whole issue. I've experienced a situation related to what's described in `[platform] DialogDescriptor/NotifyDescriptor and multiple screens`, last message April 22, 2022. But I've never seen anything reproducible. I'm beginning to think that `KeyboardFocusManager.getActiveWindow()` return null and NetBeans decides to display dialog on default screen. But I can't get it to reproduce. There also dialogs scattered throughout NetBeans that don't specify a parent, they consistently end up on the wrong screen. They could easily be changed to parent off of the NB main window, or with more effort parent from an appropriate screen. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
