summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-28 10:30:27 -0500
committerJeff Carr <[email protected]>2023-04-28 10:30:27 -0500
commit03942de00e133daf59da8ed3b6c3e71ce8afe316 (patch)
treea5d5e4b3899631d939b90d1cfa21bc165be76695 /window.go
parent8b5f8fe42d9b161090ff91960050565959ac65dd (diff)
further code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'window.go')
-rw-r--r--window.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/window.go b/window.go
index 7189fcc..db254d4 100644
--- a/window.go
+++ b/window.go
@@ -10,14 +10,14 @@ func (n *Node) NewWindow(title string) *Node {
var newNode *Node
// Windows are created off of the master node of the Binary Tree
- newNode = n.newNode(Config.Title, toolkit.Window, StandardExit)
+ newNode = n.newNode(title, toolkit.Window, StandardExit)
- log(logInfo, "NewWindow()", Config.Title)
+ log(logInfo, "NewWindow()", title)
var a toolkit.Action
a.ActionType = toolkit.Add
- a.X = Config.Width
- a.Y = Config.Height
+ a.X = n.X
+ a.Y = n.Y
a.Name = title
a.Text = title
newaction(&a, newNode, n)