aboutsummaryrefslogtreecommitdiff
path: root/panel.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-08-04 17:44:42 -0700
committer1029chris <1029chris@gmail.com>2016-08-04 17:44:42 -0700
commitd9e008d0af00198f9f2272d456add4bffe6f1a9a (patch)
treee0c910346e66e2c90b5522a3db704700fa0e9ffa /panel.lua
parent33cce45e067eb3d716ad33b5752a838319125855 (diff)
Desktop and Start menu now bring app to front if already open
when you click on the icon
Diffstat (limited to 'panel.lua')
-rw-r--r--panel.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/panel.lua b/panel.lua
index dc2c7d8..4c52135 100644
--- a/panel.lua
+++ b/panel.lua
@@ -131,9 +131,11 @@ function drawMenuItems(id)
love.graphics.rectangle("fill", 35, 5+(id*55-55), 208, 50)
love.graphics.setColor(colors.win.light)
love.graphics.print(win[id].title, 85, 5+22+(id*55-55))
- if sys.mouse.p.p == true and win[id].ex == true and v1.yes == false then
- win[id].ex = false
- win[id].s = 0.2
+ if sys.mouse.p.p == true and v1.yes == false then
+ if win[id].ex == true then
+ win[id].ex = false
+ win[id].s = 0.2
+ end
win[id].oldlayer = win[id].layer
layer.sentToFront = id
start.o = false