From f5d465901d2ec48e145c3c7ce04eceb69445a11f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Feb 2025 17:29:17 -0600 Subject: trying to send Close Window() from toolkit plugin --- window.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'window.go') 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 -- cgit v1.2.3