Fixed window shade not working. Added ability to move window while shaded

This commit is contained in:
mut-ex 2020-09-09 11:40:03 -04:00
parent dbcc6ab9c8
commit 064bf43142
1 changed files with 2 additions and 0 deletions

View File

@ -610,6 +610,7 @@ end
-- Shows the window contents -- Shows the window contents
function _private.shade_roll_down(c) 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:geometry{x = c._nice_window_shade.x, y = c._nice_window_shade.y}
c:activate() c:activate()
c._nice_window_shade.visible = false c._nice_window_shade.visible = false
@ -619,6 +620,7 @@ end
-- Hides the window contents -- Hides the window contents
function _private.shade_roll_up(c) function _private.shade_roll_up(c)
if c._nice_window_shade_up then return end
local w = c._nice_window_shade local w = c._nice_window_shade
local geo = c:geometry() local geo = c:geometry()
w.x = geo.x w.x = geo.x