From 6b13e772a9cf16ba0b81958ba3f671fdb27893fb Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 17 Apr 2023 02:16:27 -0400 Subject: [PATCH] Fixed segfault in the X backend when handling mouse motion --- backends/x/event.go | 1 + 1 file changed, 1 insertion(+) 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