errael commented on code in PR #5280:
URL: https://github.com/apache/netbeans/pull/5280#discussion_r1081447824


##########
platform/core.windows/src/org/netbeans/core/windows/services/NbPresenter.java:
##########
@@ -1591,6 +1591,18 @@ private void initBounds() {
      */
     private Window findFocusedWindow() {
         Window w = 
KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
+        if( w == null ) {
+            // PR#5280
+            LOG.fine( () -> "No focused window, find mainWindow" );
+            for( Frame f01 : Frame.getFrames() ) {

Review Comment:
   > call `findMainWindow` ?
   
   @sdedic I'd like to do that; can you give me some guidance? Need to find a 
non-API file in `platform` that's OK to access from both `core.windows` and 
`openide.util.ui` where it's appropriate to declare `findMainWindow` as a 
public method. Such a file must exist, any pointers?



-- 
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

Reply via email to