diff --git a/window.go b/window.go index 03736cf..2357a07 100644 --- a/window.go +++ b/window.go @@ -412,5 +412,5 @@ func (w *Window) Present(e render.Engine, P render.Point) { // Destroy hides the window. func (w *Window) Destroy() { - w.Hide() + w.Close() } diff --git a/window_manager.go b/window_manager.go index e3cb676..74dd36c 100644 --- a/window_manager.go +++ b/window_manager.go @@ -171,8 +171,7 @@ func (s *Supervisor) CloseAllWindows() int { ) for node != nil { i++ - node.window.Destroy() - node.window.Hide() + node.window.Close() node = node.next } return i @@ -182,7 +181,7 @@ func (s *Supervisor) CloseAllWindows() int { func (s *Supervisor) CloseActiveWindow() bool { var node = s.winFocus if node != nil { - node.window.Hide() + node.window.Close() } // Find the next visible window to focus.