IDEA-166759 The cursor while over one ToolWindow sees another border toolwindow, located behind

This commit is contained in:
Vassiliy.Kudryashov
2017-01-23 16:34:50 +03:00
parent edac6e4874
commit 1ebf5bca48
@@ -35,6 +35,8 @@ import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.*;
import java.util.List;
/**
* @author Vladimir Kondratyev
@@ -615,7 +617,8 @@ public class ThreeComponentsSplitter extends JPanel implements Disposable {
if (window != null) {
Point point = SwingUtilities.convertPoint(this, p, window);
Component component = SwingUtilities.getDeepestComponentAt(window, point.x, point.y);
if (UIUtil.findParentByCondition(component, c -> c == ThreeComponentsSplitter.this) == null) return false;
List<Component> components = Arrays.asList(myFirstComponent, myFirstDivider, myInnerComponent, myLastDivider, myLastComponent);
if (UIUtil.findParentByCondition(component, c -> c != null && components.contains(c)) == null) return false;
}
int dndOff = myIsOnePixel ? JBUI.scale(Registry.intValue("ide.splitter.mouseZone")) / 2 : 0;