Fix multiple tasklists on the same screen (#563)

The code already tried to handle this correctly, but at some point it used the
wrong variable as the screen number...

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-11-19 20:11:42 +01:00
parent f7bbcf1263
commit 7eed74b814
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
capi.client.connect_signal("unfocus", u)
end
w._do_tasklist_update()
local list = instances[s]
local list = instances[screen]
if not list then
list = setmetatable({}, { __mode = "v" })
instances[screen] = list