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:
parent
f7bbcf1263
commit
7eed74b814
|
@ -225,7 +225,7 @@ function tasklist.new(screen, filter, buttons, style, update_function, base_widg
|
||||||
capi.client.connect_signal("unfocus", u)
|
capi.client.connect_signal("unfocus", u)
|
||||||
end
|
end
|
||||||
w._do_tasklist_update()
|
w._do_tasklist_update()
|
||||||
local list = instances[s]
|
local list = instances[screen]
|
||||||
if not list then
|
if not list then
|
||||||
list = setmetatable({}, { __mode = "v" })
|
list = setmetatable({}, { __mode = "v" })
|
||||||
instances[screen] = list
|
instances[screen] = list
|
||||||
|
|
Loading…
Reference in New Issue