summaryrefslogtreecommitdiff
path: root/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'workspace.lua')
-rw-r--r--workspace.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/workspace.lua b/workspace.lua
index fb632db..395b135 100644
--- a/workspace.lua
+++ b/workspace.lua
@@ -63,7 +63,6 @@ function Workspace:_apply_state()
local desk = self.desktops[desk_idx]
local page_idx = state.page_idx
local page = desk.pages[page_idx]
- print("workspace displaying: " .. s.index .. " => " .. desk_idx .. "/" .. page_idx)
page:view_only()
@@ -75,8 +74,6 @@ function Workspace:_apply_state()
end
function Workspace:view(screen, desktop_idx, page_idx)
- print("workspace: " .. screen.index .. ": view " .. desktop_idx .. "/" .. (page_idx or "nil"))
-
local desktop = self.desktops[desktop_idx]
-- the current state of the target screen
@@ -142,22 +139,17 @@ end
function Workspace:view_relative(offset, screen)
screen = screen or mouse.screen
- print("view relative " .. offset .. " on " .. screen.index)
local state = self.screen_state[screen]
if state then
local desk = state.desktop_idx
- print("state " .. state.page_idx .. " res " .. (state.page_idx + offset) % 10)
local page = 1 + ((state.page_idx - 1 + offset) % #self.desktops[desk].pages)
- print("desk " .. desk .. " " .. #self.desktops[desk].pages)
- print("view relative switch to " .. page)
self:view(screen, desk, page)
end
end
function Workspace:move_client(client, desk, page)
- print("move to " .. desk .. "/" .. page)
local dst_page = self.desktops[desk].pages[page]
local dst_screen = awful.tag.getscreen(dst_page)
client:move_to_screen(dst_screen)