From 20437ea4f6ec6b2f759c5d80a5531ac4d14250c0 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sun, 12 Jan 2020 23:52:52 -0500 Subject: [PATCH] Disabled setVisible during render if not focused in multishell --- windont/windont.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/windont/windont.lua b/windont/windont.lua index ee72a47..37566e3 100644 --- a/windont/windont.lua +++ b/windont/windont.lua @@ -215,7 +215,11 @@ windont.render = function(onlyX1, onlyX2, onlyY, ...) end end if windont.useSetVisible and bT.setVisible then - bT.setVisible(true) + if not multishell then + bT.setVisible(true) + elseif multishell.getFocus() == multishell.getCurrent() then + bT.setVisible(true) + end end end