diff options
| author | Jeff Carr <[email protected]> | 2025-03-03 08:31:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-03 08:31:21 -0600 |
| commit | 75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 (patch) | |
| tree | e7285307e91f4291d4361568ed1f89bd6ad9e1d6 /find.go | |
| parent | 9ef16c1bf2bfc1e00163b461779383c809efff9f (diff) | |
define a background widget more properly
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -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 |
