summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 08:31:21 -0600
committerJeff Carr <[email protected]>2025-03-03 08:31:21 -0600
commit75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 (patch)
treee7285307e91f4291d4361568ed1f89bd6ad9e1d6 /find.go
parent9ef16c1bf2bfc1e00163b461779383c809efff9f (diff)
define a background widget more properly
Diffstat (limited to 'find.go')
-rw-r--r--find.go19
1 files changed, 0 insertions, 19 deletions
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