summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-25 17:05:32 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-25 17:05:53 +0100
commit3620bcb89d252a55d73b51d13f95d9f572c3da82 (patch)
treea75796294f9cdef762d91672f80098343413edfe
parent34ae3a00fa69b7c4a030ce00aafe8ff9e26bfc60 (diff)
Remove debugging prints.
This functionality now works well enough, so they should not be necessarily anymore.
-rw-r--r--rc.lua1
-rw-r--r--workspace.lua8
2 files changed, 0 insertions, 9 deletions
diff --git a/rc.lua b/rc.lua
index 01f02fe..0dfd276 100644
--- a/rc.lua
+++ b/rc.lua
@@ -93,7 +93,6 @@ for s in screen do
wsp.signals:connect_signal("desktop:view",
function(signals, view_screen, desktop)
- print("desktop:view " .. desktop .. " on " .. view_screen.index)
if view_screen == s then
pgr:set_desktop(wsp.desktops[desktop])
end
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)