src/macosx/classes/sun/lwawt/LWWindowPeer.java
Print this page
*** 1065,1079 ****
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");
return false;
}
Window currentActive = KeyboardFocusManager.
getCurrentKeyboardFocusManager().getActiveWindow();
--- 1065,1075 ----
if (!focusAllowedFor()) {
focusLog.fine("focus is not allowed");
return false;
}
! if (platformWindow.rejectFocusRequest(cause)) {
return false;
}
Window currentActive = KeyboardFocusManager.
getCurrentKeyboardFocusManager().getActiveWindow();