summaryrefslogtreecommitdiff
path: root/window.go
diff options
context:
space:
mode:
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)