aboutsummaryrefslogtreecommitdiff
path: root/window.lua
diff options
context:
space:
mode:
authorChris B <1029chris@gmail.com>2016-03-10 16:58:43 -0800
committerChris B <1029chris@gmail.com>2016-03-10 16:58:43 -0800
commit59f5b18fb3ef1101a882bc75a4bfee0a8daca41e (patch)
tree33c1e4751316722b8f2c4eeee60176f69adf5b3f /window.lua
parentd88edc5bc473f699cd7606ce82e1d40e97171ac8 (diff)
Added more to check window hover
Diffstat (limited to 'window.lua')
-rw-r--r--window.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/window.lua b/window.lua
index e094843..636cfac 100644
--- a/window.lua
+++ b/window.lua
@@ -45,6 +45,13 @@ function drawWindow(id)
else
win[id].hover = true
end
+ if win[id].layer ~= 1 then
+ for i=1,win[id].layer-1 do
+ if win[layer[i]].hov == true then
+ win[id].hover = false
+ end
+ end
+ end
end
if win[id].hov == false then
win[id].hover = false