summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 17:29:17 -0600
committerJeff Carr <[email protected]>2025-02-06 17:29:17 -0600
commitf5d465901d2ec48e145c3c7ce04eceb69445a11f (patch)
tree0aa6f6f9edd9c7bb8fb3c4a3b304c3f9a63d6a42 /window.go
parente134ecb6a4285d576c45c3f86274703f32ab30b0 (diff)
trying to send Close Window() from toolkit plugin
Diffstat (limited to 'window.go')
-rw-r--r--window.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/window.go b/window.go
index 412096c..7d612e4 100644
--- a/window.go
+++ b/window.go
@@ -31,7 +31,13 @@ func (tk *guiWidget) redrawWindow(w int, h int) {
tk.DrawAt(w, h)
tk.setColor(&colorActiveW) // sets the window to Green BG
- tk.placeWidgets(w, h) // compute the sizes & places for each widget
+
+ if tk.window.collapsed {
+ // don't show anything but the title bar
+ tk.hideWindow()
+ return
+ }
+ tk.placeWidgets(w, h) // compute the sizes & places for each widget
// this is a test. this should not be needed
tk.full.w0 = tk.force.w0