summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 11:58:27 -0600
committerJeff Carr <[email protected]>2025-02-05 11:58:27 -0600
commit6a0fd773f41bb0d8892f30f022098a24ffdc562e (patch)
tree9f3c4ed6dac4063748cfb6988f5a7658c24b8e53 /window.go
parentec68f448affd0af92142ff7d0a66850a2523e5c2 (diff)
finally window drag works
Diffstat (limited to 'window.go')
-rw-r--r--window.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/window.go b/window.go
index b7e3761..2f0673a 100644
--- a/window.go
+++ b/window.go
@@ -13,6 +13,9 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
if tk.node.WidgetType != widget.Window {
return
}
+ tk.gocuiSize.w0 = w - 2
+ tk.gocuiSize.h0 = h - 1
+
tk.setFullSize() // might make the green box the right size
tk.frame = false