Fixed segfault in the X backend when handling mouse motion
This commit is contained in:
parent
427b5e025d
commit
6b13e772a9
@ -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
|
||||
|
Reference in New Issue
Block a user