sbool isScreenCoordinateInWindow(Pt p, Component c) { Window w = getWindow(c); ret w != null && w.isShowing() && toRect(boundsOnScreen(w)).contains(p); }