diff options
Diffstat (limited to 'workspace.lua')
-rw-r--r-- | workspace.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/workspace.lua b/workspace.lua index 2ba67e5..f0a6dcc 100644 --- a/workspace.lua +++ b/workspace.lua @@ -117,8 +117,12 @@ function Workspace:view(screen, desktop_idx, page_idx) else -- mark previous page as free if state_cur then - self.desktops[state_cur.desktop_idx].screen_map[state_cur.page_idx] = nil - self.desktops[state_cur.desktop_idx].indices_free:push(state_cur.page_idx) + local desk = self.desktops[state_cur.desktop_idx] + + desk.screen_map[state_cur.page_idx] = nil + desk.indices_free:push(state_cur.page_idx) + + desk:emit_signal("page:hide", state_cur.page_idx) end desktop.screen_map[page_idx] = screen |