From 75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 08:31:21 -0600 Subject: define a background widget more properly --- find.go | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'find.go') diff --git a/find.go b/find.go index 8fb8318..d3aa19d 100644 --- a/find.go +++ b/find.go @@ -94,25 +94,6 @@ func (tk *guiWidget) findWindows() []*guiWidget { return found } -// find the BG widget. -// This widget is always in the background and covers the whole screen. -// gocui seems to not return mouse events unless there is something there -func (tk *guiWidget) findBG() *guiWidget { - if tk.WidgetType() == widget.Stdout { - if tk.WidgetId() != me.stdout.wId { - tk.isBG = true - return tk - } - } - - for _, child := range tk.children { - if found := child.findBG(); found != nil { - return found - } - } - return nil -} - // used by gocui.TabKey to rotate through the windows func findNextWindow() *guiWidget { var found bool -- cgit v1.2.3