From: Brendan Hansen Date: Tue, 7 Apr 2020 22:23:32 +0000 (-0500) Subject: Small bugfix X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=8fad65ca2413bc5976572b1e69a4d0a2679bc119;p=wasm-analyzer.git Small bugfix --- 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)