diff options
author | Anton Khirnov <anton@khirnov.net> | 2018-06-22 13:27:30 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2018-06-22 13:27:38 +0200 |
commit | 0ca36d117aec3829ef5dfa6b65f9437d65fdc7e2 (patch) | |
tree | 8d5e0ef2badc7b665f54dc0d11fb2bb08268c3c4 /workspace.lua | |
parent | 0d4925f5a35ebcb7f143ce9e947d54987a539033 (diff) |
workspace: fix variable scope.
Diffstat (limited to 'workspace.lua')
-rw-r--r-- | workspace.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/workspace.lua b/workspace.lua index d6ef061..84dd699 100644 --- a/workspace.lua +++ b/workspace.lua @@ -60,8 +60,9 @@ function Workspace:view(screen, desktop, page_idx) -- the page to display on the target screen page_idx = self.desktops[desktop]:show(screen, page_idx) + local page_new = nil if page_idx then - local page_new = self.desktops[desktop].pages[page_idx] + page_new = self.desktops[desktop].pages[page_idx] end -- the screen on which the new page is currently displayed (if any) |