IsPointInWindow: not in hidden windows

menus
Noah 2020-04-21 19:55:57 -07:00
parent 6d6629d3c0
commit d27636ea48
1 changed files with 1 additions and 1 deletions

View File

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