JBR-4782 Synergy keyboard/mouse input: window disabled after bringing IntelliJ into focus

(cherry picked from commit f863a14b19)
This commit is contained in:
Dmitry Batrak
2022-08-30 11:47:11 +03:00
committed by jbrbot
parent d956c9fbfd
commit 54412d4593

View File

@@ -1211,12 +1211,6 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
* Callbacks from the AWTWindow and AWTView objc classes.
*************************************************************/
private void deliverWindowFocusEvent(boolean gained, CPlatformWindow opposite){
// Fix for 7150349: ignore "gained" notifications when the app is inactive.
if (gained && !((LWCToolkit)Toolkit.getDefaultToolkit()).isApplicationActive()) {
focusLogger.fine("the app is inactive, so the notification is ignored");
return;
}
LWWindowPeer oppositePeer = (opposite == null)? null : opposite.getPeer();
responder.handleWindowFocusEvent(gained, oppositePeer);
}