summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/find.go b/find.go
index 0cdfbfb..795f7ee 100644
--- a/find.go
+++ b/find.go
@@ -99,8 +99,10 @@ func (tk *guiWidget) findWindows() []*guiWidget {
// gocui seems to not return mouse events unless there is something there
func (tk *guiWidget) findBG() *guiWidget {
if tk.node.WidgetType == widget.Stdout {
- tk.isBG = true
- return tk
+ if tk.node.WidgetId != me.stdout.wId {
+ tk.isBG = true
+ return tk
+ }
}
for _, child := range tk.children {