summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
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