diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 17:29:17 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 17:29:17 -0600 |
| commit | f5d465901d2ec48e145c3c7ce04eceb69445a11f (patch) | |
| tree | 0aa6f6f9edd9c7bb8fb3c4a3b304c3f9a63d6a42 /window.go | |
| parent | e134ecb6a4285d576c45c3f86274703f32ab30b0 (diff) | |
trying to send Close Window() from toolkit plugin
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
