From 0f9608a50a69c1e870437d4a8781fb07691ca68d Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 12 Sep 2024 02:46:35 -0400 Subject: [PATCH] NewApplicationWindow takes in a WindowKind --- application.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application.go b/application.go index fbb72c7..3da1aa6 100644 --- a/application.go +++ b/application.go @@ -204,8 +204,8 @@ func RunApplication (application Application) { // owned by the application. The window's icon will be automatically set by // looking for an icon with the name of the application's ID. If that is not // found, the default icon for the application's ApplicationRole will used. -func NewApplicationWindow (application Application, bounds image.Rectangle) (tomo.Window, error) { - window, err := tomo.NewWindow(bounds) +func NewApplicationWindow (application Application, kind tomo.WindowKind, bounds image.Rectangle) (tomo.Window, error) { + window, err := tomo.NewWindow(kind, bounds) if err != nil { return nil, err } description := application.Describe() window.SetTitle(description.Name)