From 35a204512318deaed59c048e117ba4a9f6b5a23f Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Fri, 14 Jun 2013 20:29:39 +0200 Subject: [PATCH] Update for core changes --- Nasal/canvas/gui.nas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Nasal/canvas/gui.nas b/Nasal/canvas/gui.nas index 99715e224..cfe084141 100644 --- a/Nasal/canvas/gui.nas +++ b/Nasal/canvas/gui.nas @@ -50,7 +50,7 @@ var Window = { view: size, placement: { type: "window", - index: me._node.getIndex() + id: me.get("id") } }); @@ -88,7 +88,9 @@ var Window = { # Raise to top of window stack raise: func() { - me.setBool("raise-top", 1); + # on writing the z-index the window always is moved to the top of all other + # windows with the same z-index. + me.setInt("z-index", me.get("z-index", 0)); }, # private: _propCallback: func(child, mode)