summaryrefslogtreecommitdiff
path: root/eventMouseClick.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouseClick.go')
-rw-r--r--eventMouseClick.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/eventMouseClick.go b/eventMouseClick.go
index 6ebd800..8c32910 100644
--- a/eventMouseClick.go
+++ b/eventMouseClick.go
@@ -15,11 +15,6 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
}
tk.setFullSize() // might make the green box the right size
- // draw the current window
- // w = tk.gocuiSize.w0 + 4
- // h = tk.gocuiSize.h0 + 4
- w = w + 4
- h = h + 4
tk.DrawAt(w, h)
tk.setColor(&colorActiveW) // sets the window to Green BG
tk.placeWidgets(w, h) // compute the sizes & places for each widget
@@ -47,7 +42,7 @@ func (tk *guiWidget) doWidgetClick(w int, h int) {
me.currentWindow.isCurrent = true
tk.active = false
- tk.redrawWindow(tk.gocuiSize.w0, tk.gocuiSize.h0)
+ tk.redrawWindow(w, h)
return
case widget.Group:
if tk.active {