From 3620bcb89d252a55d73b51d13f95d9f572c3da82 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 25 Feb 2021 17:05:32 +0100 Subject: Remove debugging prints. This functionality now works well enough, so they should not be necessarily anymore. --- rc.lua | 1 - workspace.lua | 8 -------- 2 files changed, 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) -- cgit v1.2.3