mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-16 22:39:41 +01:00
JBR-4782 Synergy keyboard/mouse input: window disabled after bringing IntelliJ into focus
(cherry picked from commit f863a14b19)
This commit is contained in:
@@ -1240,12 +1240,6 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
|
|||||||
* Callbacks from the AWTWindow and AWTView objc classes.
|
* Callbacks from the AWTWindow and AWTView objc classes.
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
private void deliverWindowFocusEvent(boolean gained, CPlatformWindow opposite){
|
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();
|
LWWindowPeer oppositePeer = (opposite == null)? null : opposite.getPeer();
|
||||||
responder.handleWindowFocusEvent(gained, oppositePeer);
|
responder.handleWindowFocusEvent(gained, oppositePeer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user