static bool mouseInWindow(Component c) { Window w = getWindow(c); ret w != null && boundsOnScreen(w).contains(mousePosition()); }