Skip to content
Browse files

update to newest awesome

  • Loading branch information...
1 parent f05dcf6 commit a6e30c2b80d470aac31ceab7acd47d11017f4403 @dodo committed
Showing with 3 additions and 5 deletions.
  1. +3 −5 restore.lua
View
8 restore.lua
@@ -167,11 +167,10 @@ function disconnect()
local filename = "_savepoint"
local data = load(filename)
for s = 1, capi.screen.count() do
- local screen = capi.screen[s]
local screendata = data[s] or {}
data[s] = screendata
screendata.tags = get_tag_numbers(awful.tag.selectedlist(s))
- for t,tag in ipairs(screen:tags()) do
+ for t,tag in ipairs(awful.tag.gettags(s)) do
screendata[t] = update_tag('get', tag, screendata[t])
end
end
@@ -296,7 +295,7 @@ end
local function get_tags(tags, screen)
-- get all tag userdatas
local ret = {}
- local capitags = capi.screen[screen or 1]:tags()
+ local capitags = awful.tag.gettags(screen or 1)
for _, t in ipairs(tags or {}) do
table.insert(ret, capitags[t])
end
@@ -315,13 +314,12 @@ function connect(Layouts)
-- make sure, that we have at least a screen and tag structure
for s = 1, capi.screen.count() do
- local screen = capi.screen[s]
local screendata = data[s]
if screendata == nil then
screendata = {}
data[s] = screendata
end
- for t,tag in ipairs(screen:tags()) do
+ for t,tag in ipairs(awful.tag.gettags(s)) do
screendata[t] = update_tag('set', tag, screendata[t])
end
if screendata.tags and #screendata.tags then

0 comments on commit a6e30c2

Please sign in to comment.
Something went wrong with that request. Please try again.