diff --git a/backends/x/event.go b/backends/x/event.go index 84630a1..5f6feba 100644 --- a/backends/x/event.go +++ b/backends/x/event.go @@ -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