summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 9e4aa1e..79809b0 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -115,9 +115,7 @@ func doMouseClick(w int, h int) {
return
}
// log.Info("you clicked on a window, but not any widgets. check for title / close window here", win.cuiName)
- win.redrawWindow(win.gocuiSize.w0, win.gocuiSize.h0)
- me.stdout.outputOnTop = false
- setThingsOnTop()
+ win.makeWindowActive()
return
}
@@ -154,9 +152,7 @@ func doMouseDoubleClick(w int, h int) {
for _, tk := range findByXY(w, h) {
if tk.node.WidgetType == widget.Window {
- tk.redrawWindow(tk.gocuiSize.w0, tk.gocuiSize.h0)
- me.stdout.outputOnTop = false
- setThingsOnTop()
+ tk.makeWindowActive()
return
}