summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-03 15:47:50 -0600
committerJeff Carr <[email protected]>2025-02-03 15:47:50 -0600
commitacb0e43945f75ef3cfeed6588a164901f69b9212 (patch)
treebdf79a8198d2e48f37bcb03d717a435d44e6d339 /eventMouseClick.go
parent65622d01cd303f6e357d32e4ad6ab8b42755f74c (diff)
notsure
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 386e2cb..526cbbe 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -25,13 +25,19 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
// now set this window as the current window
me.currentWindow = tk
me.currentWindow.isCurrent = true
+ tk.active = false
+
+ full := tk.getFullSize()
+ tk.gocuiSize.w1 = full.w1
+ tk.gocuiSize.h1 = full.h1
// draw the current window
+ w := tk.gocuiSize.w0 + 4
+ h := tk.gocuiSize.h0 + 4
+ tk.DrawAt(w, h)
tk.setColor(&colorActiveW)
- tk.DrawAt(3, 2)
- tk.placeWidgets(3, 2) // compute the sizes & places for each widget
- tk.active = false
tk.showWidgets()
+ tk.placeWidgets(w, h) // compute the sizes & places for each widget
case widget.Group:
if tk.active {
tk.active = false