double click stdout to move to front or back

This commit is contained in:
Jeff Carr 2025-02-08 08:55:26 -06:00
parent a6c1864f43
commit b730ee9459
1 changed files with 12 additions and 0 deletions

View File

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