window double click brings to forefront
This commit is contained in:
parent
1923f8df96
commit
9d1a045a1f
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue