summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eventMouseClick.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index b3f817b..edf4562 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -146,4 +146,16 @@ func doMouseClick(w int, h int) {
func doMouseDoubleClick(w int, h int) {
me.mouse.double = false
log.Printf("actually a double click (%d,%d)", w, h)
+
+ for _, tk := range findByXY(w, h) {
+ if tk.node.WidgetType == widget.Stdout {
+ if me.stdout.outputOnTop {
+ me.stdout.outputOnTop = false
+ setThingsOnTop()
+ } else {
+ me.stdout.outputOnTop = true
+ setThingsOnTop()
+ }
+ }
+ }
}