Skip to content

Commit

Permalink
JRE-864 Multiple child windows opened and closed in sequence result i…
Browse files Browse the repository at this point in the history
…n a focus loss

Mac OS X (logs)
  • Loading branch information
Denis Fokin committed Aug 8, 2018
1 parent d38092b commit ac3810e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/macosx/classes/sun/lwawt/LWComponentPeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ public boolean requestFocus(Component lightweightChild, boolean temporary,
}

return parentPeer.requestWindowFocus(cause, () -> {
if (focusLog.isLoggable(PlatformLogger.Level.FINE)) {
focusLog.fine("request rejected, parentWindow.isFocused() = " +
parentWindow.isFocused());
}
LWKeyboardFocusManagerPeer.removeLastFocusRequest(getTarget());
}, () -> {
KeyboardFocusManagerPeer kfmPeer = LWKeyboardFocusManagerPeer.getInstance();
Expand Down

0 comments on commit ac3810e

Please sign in to comment.