mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-204015 IllegalArgumentException because event getcomponent is null (from TrayIcon)
This commit is contained in:
@@ -335,6 +335,8 @@ public class IdeEventQueue extends EventQueue {
|
||||
|
||||
if (isMetaKeyPressedOnLinux(e)) return;
|
||||
|
||||
if (e.getSource() instanceof TrayIcon) return;
|
||||
|
||||
checkForTimeJump();
|
||||
|
||||
if (!appIsLoaded()) {
|
||||
|
||||
-5
@@ -124,11 +124,6 @@ public final class IdeMouseEventDispatcher {
|
||||
public boolean dispatchMouseEvent(MouseEvent e) {
|
||||
Component c = e.getComponent();
|
||||
|
||||
// dispatch tray events by default
|
||||
if (c == null && e.getSource() instanceof TrayIcon) {
|
||||
return false;
|
||||
}
|
||||
|
||||
//frame activation by mouse click
|
||||
if (e.getID() == MOUSE_PRESSED && c instanceof IdeFrame && !c.hasFocus()) {
|
||||
IdeFocusManager focusManager = IdeFocusManager.getGlobalInstance();
|
||||
|
||||
Reference in New Issue
Block a user