diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 12:21:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 12:21:43 -0600 |
| commit | c5cada3dc93ba0f049b50fd7561a2c15347473ee (patch) | |
| tree | 7ef0fc9e8c119f5ae86798ea10d2b8d75e281b83 /eventMouseClick.go | |
| parent | 87d31a3d94a26c733e3efda9dd2f60688332bc5a (diff) | |
code cleanups
Diffstat (limited to 'eventMouseClick.go')
| -rw-r--r-- | eventMouseClick.go | 8 |
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 } |
