IsPointInWindow: not in hidden windows
This commit is contained in:
parent
6d6629d3c0
commit
d27636ea48
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user