From 8fad65ca2413bc5976572b1e69a4d0a2679bc119 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 7 Apr 2020 17:23:32 -0500 Subject: [PATCH] Small bugfix --- app.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.lua b/app.lua index 47c7224..81d86ce 100644 --- a/app.lua +++ b/app.lua @@ -137,7 +137,10 @@ end function function_block.unfocus(self) self.resize_down = false self.redraw = true - self.layer = self.layer + 1 + + for _, chld in ipairs(self.parent.children) do + chld.layer = chld.layer + 1 + end end function function_block.mousemoved(self, x, y, dx, dy) -- 2.25.1