Don't crash when user hovers over nothing
This commit is contained in:
parent
6a2dc36140
commit
c409bc1a1e
4
event.go
4
event.go
@ -339,11 +339,13 @@ func (window *window) handleMotionNotify (
|
|||||||
}
|
}
|
||||||
|
|
||||||
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
|
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
|
||||||
|
if underneath != nil {
|
||||||
window.hover(underneath)
|
window.hover(underneath)
|
||||||
|
|
||||||
if !handled {
|
if !handled {
|
||||||
underneath.handleMouseMove()
|
underneath.handleMouseMove()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (window *window) compressExpose (
|
func (window *window) compressExpose (
|
||||||
|
Reference in New Issue
Block a user