Don't crash when user hovers over nothing

This commit is contained in:
Sasha Koshka 2024-05-07 20:14:46 -04:00
parent 6a2dc36140
commit c409bc1a1e

View File

@ -339,13 +339,15 @@ func (window *window) handleMotionNotify (
}
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
if underneath != nil {
window.hover(underneath)
if !handled {
underneath.handleMouseMove()
}
}
}
func (window *window) compressExpose (
firstEvent xproto.ExposeEvent,
) (