Fixed segfault in the X backend when handling mouse motion

This commit is contained in:
Sasha Koshka 2023-04-17 02:16:27 -04:00
parent 427b5e025d
commit 6b13e772a9
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ func (window *window) handleMotionNotify (
handled := false
for _, child := range window.system.drags {
if child == nil { continue }
if child, ok := child.element.(tomo.MotionTarget); ok {
child.HandleMotion(x, y)
handled = true