summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-08 09:16:22 -0600
committerJeff Carr <[email protected]>2025-02-08 09:16:22 -0600
commit9d1a045a1f84c079707f766d999312a6da12824d (patch)
tree7e932e83f2b956e0c42cda55db67b27f40d27b88 /eventMouseClick.go
parent1923f8df96ff971ded298cc536e06f48b04d9075 (diff)
window double click brings to forefront
Diffstat (limited to 'eventMouseClick.go')
-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
}
}
}