aboutsummaryrefslogtreecommitdiff
path: root/panel.lua
diff options
context:
space:
mode:
authorChris B <1029chris@gmail.com>2016-02-25 20:05:39 -0800
committerChris B <1029chris@gmail.com>2016-02-25 20:05:39 -0800
commite1e1f5d58f68ffc03e8010f164f8aa4d605f3b63 (patch)
tree3e043918d54afcbd8a0a3f60e80411894eff25f4 /panel.lua
parenta8b606be2dcdbd345d3f67d5c44275360f7a91e0 (diff)
Rewrote layer system, I hope it works this time...
Diffstat (limited to 'panel.lua')
-rw-r--r--panel.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/panel.lua b/panel.lua
index ef77d1b..5e381a1 100644
--- a/panel.lua
+++ b/panel.lua
@@ -8,8 +8,7 @@ function drawPanelButton(id)
and sys.mouse.p.x <= (panel.s.x+72+(137*id-137))+(panel.s.width*2)
and sys.mouse.p.y >= panel.s.y and sys.mouse.p.y <= panel.s.y+panel.s.height) then
if win[panel.b[id]].min == false then
- win[panel.b[id]].oldlayer = win[panel.b[id]].layer
- win[panel.b[id]].layer = 1
+ layer.sentToFront = panel.b[id]
elseif win[panel.b[id]].min == true then
win[panel.b[id]].min = false
win[panel.b[id]].oldlayer = win[panel.b[id]].layer