summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eventMouseClick.go7
1 files changed, 7 insertions, 0 deletions
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
}
}
}