Browse Source

IsPointInWindow: not in hidden windows

menus
Noah Petherbridge 1 year ago
parent
commit
d27636ea48
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      window_manager.go

+ 1
- 1
window_manager.go 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


Loading…
Cancel
Save