diff --git a/eventMouseClick.go b/eventMouseClick.go index edf4562..a5dcab9 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -148,6 +148,12 @@ func doMouseDoubleClick(w int, h int) { log.Printf("actually a double click (%d,%d)", w, h) for _, tk := range findByXY(w, h) { + if tk.node.WidgetType == widget.Window { + me.stdout.outputOnTop = false + setThingsOnTop() + return + } + if tk.node.WidgetType == widget.Stdout { if me.stdout.outputOnTop { me.stdout.outputOnTop = false @@ -156,6 +162,7 @@ func doMouseDoubleClick(w int, h int) { me.stdout.outputOnTop = true setThingsOnTop() } + return } } }