double click stdout to move to front or back
This commit is contained in:
parent
a6c1864f43
commit
b730ee9459
|
@ -146,4 +146,16 @@ func doMouseClick(w int, h int) {
|
||||||
func doMouseDoubleClick(w int, h int) {
|
func doMouseDoubleClick(w int, h int) {
|
||||||
me.mouse.double = false
|
me.mouse.double = false
|
||||||
log.Printf("actually a double click (%d,%d)", w, h)
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue