Merge pull request #2991 from psychon/cleanup_tag_history

Cleanup tag history on screen removal
This commit is contained in:
mergify[bot] 2020-02-13 00:31:04 +00:00 committed by GitHub
commit fd237b9cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -1811,6 +1811,7 @@ capi.screen.connect_signal("removed", function(s)
t._private.awful_tag_properties.screen = nil
end
end
data.history[s] = nil
end)
function tag.mt:__call(...)

View File

@ -81,6 +81,16 @@ collectable(awful.widget.tasklist{screen=1, filter=awful.widget.tasklist.filter.
prepare_for_collect = run_delayed_calls
collectable(create_wibox())
-- Test that screens can be collected
local function create_and_remove_screen()
local s = screen.fake_add(-10, -10, 10, 10)
awful.tag.viewnext(s)
s:fake_remove()
return s
end
prepare_for_collect = run_delayed_calls
collectable(create_and_remove_screen())
runner.run_steps({ function() return true end })
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80