errael commented on PR #5280: URL: https://github.com/apache/netbeans/pull/5280#issuecomment-1382199244
> a situation where the direct parent is not the optimal answer: > > the editor tab dropdown can close tabs. If the tab is unsaved a dialog will appear. This dialog's parent would be the popup which causes it open on the upper right area of the main window. Is this intermittent for you? I can't reproduce what you're seeing. I thought it might be because I use "focus follows mouse" but disabling that didn't change it. The `Question`-`File xxx is modified. Save?` dialog always shows up over the main window. I tried detaching the editor, the dialog shows up over the detached editor. I'm on current linux, with ``` XDG_CURRENT_DESKTOP=pop:GNOME ``` Could be a OS/window manager issue. The close sequence starts with the following and notice the comment about focusing the top component before continuing. https://github.com/apache/netbeans/blob/cac7e658adf03d514dad62b29fab488b0ed18a99/platform/core.windows/src/org/netbeans/core/windows/actions/CloseWindowAction.java#L74-L89 The action does end up in `NbPresenter.findFocusedWindow()`, where I've got a change; in the cases I've looked at the code I've added doesn't come into play. -- 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
