src/macosx/classes/sun/lwawt/LWWindowPeer.java
Print this page
@@ -1065,15 +1065,11 @@
if (!focusAllowedFor()) {
focusLog.fine("focus is not allowed");
return false;
}
- // Cross-app activation requests are not allowed.
- if (cause != CausedFocusEvent.Cause.MOUSE_EVENT &&
- !((LWToolkit)Toolkit.getDefaultToolkit()).isApplicationActive())
- {
- focusLog.fine("the app is inactive, so the request is rejected");
+ if (platformWindow.rejectFocusRequest(cause)) {
return false;
}
Window currentActive = KeyboardFocusManager.
getCurrentKeyboardFocusManager().getActiveWindow();