aboutsummaryrefslogtreecommitdiff
path: root/desktop.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 /desktop.lua
parent33cce45e067eb3d716ad33b5752a838319125855 (diff)
Desktop and Start menu now bring app to front if already open
when you click on the icon
Diffstat (limited to 'desktop.lua')
-rw-r--r--desktop.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop.lua b/desktop.lua
index 4dbdc24..b841974 100644
--- a/desktop.lua
+++ b/desktop.lua
@@ -80,6 +80,9 @@ function checkIcon(id)
win[id].s = 0.2
win[id].oldlayer = win[id].layer
layer.sentToFront = id
+ else
+ win[id].oldlayer = win[id].layer
+ layer.sentToFront = id
end
end
elseif sys.mouse.drag == true or sys.mouse.p.x > 120 or sys.mouse.p.y > 550 then