IsPointInWindow: not in hidden windows

This commit is contained in:
Noah 2020-04-21 19:55:57 -07:00
parent 6d6629d3c0
commit d27636ea48

View File

@ -156,7 +156,7 @@ func (s *Supervisor) FocusWindow(win *Window) error {
func (s *Supervisor) IsPointInWindow(point render.Point) bool {
node := s.winFocus
for node != nil {
if point.Inside(AbsoluteRect(node.window)) {
if point.Inside(AbsoluteRect(node.window)) && !node.window.hidden {
return true
}
node = node.next