summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-12-24 10:44:48 +0000
committerAnton Khirnov <anton@khirnov.net>2022-12-24 10:44:48 +0000
commit8a99126930b902171204fd7e1c5871014ebffa33 (patch)
treeddc99b350de263f8e2e17a4114607123192fe512
parent9e286faa4f0e8c215916424ce963bbf4fd0d1162 (diff)
workspace: create desktop pages in reverse order
This way the first page ends up on top of the free-page stack, so it is picked first.
-rw-r--r--workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/workspace.lua b/workspace.lua
index 82e5511..9da5e4a 100644
--- a/workspace.lua
+++ b/workspace.lua
@@ -26,7 +26,7 @@ function Workspace:_add_desktop(idx, name, nb_pages)
desk.pages = {}
desk.indices_free = stack.Stack:new()
- for i = 1, nb_pages do
+ for i = nb_pages, 1, -1 do
desk.pages[i] = awful.tag.add(string.format("%02x%02x", idx, i), { layout = self.layouts[1] })
desk.indices_free:push(i)
end