window double click brings to forefront

This commit is contained in:
Jeff Carr 2025-02-08 09:16:22 -06:00
parent 1923f8df96
commit 9d1a045a1f
1 changed files with 7 additions and 0 deletions

View File

@ -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
}
}
}