summaryrefslogtreecommitdiff
path: root/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'workspace.lua')
-rw-r--r--workspace.lua3
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)