From 064bf431426ddc67ad236e5eac5e4f12eed3d868 Mon Sep 17 00:00:00 2001 From: mut-ex Date: Wed, 9 Sep 2020 11:40:03 -0400 Subject: [PATCH] Fixed window shade not working. Added ability to move window while shaded --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index e64c8fa..e0ac651 100644 --- a/init.lua +++ b/init.lua @@ -610,6 +610,7 @@ end -- Shows the window contents function _private.shade_roll_down(c) + if not c._nice_window_shade_up then return end c:geometry{x = c._nice_window_shade.x, y = c._nice_window_shade.y} c:activate() c._nice_window_shade.visible = false @@ -619,6 +620,7 @@ end -- Hides the window contents function _private.shade_roll_up(c) + if c._nice_window_shade_up then return end local w = c._nice_window_shade local geo = c:geometry() w.x = geo.x