menu: Check if the client is still valid before accessing props

Fix #1777
This commit is contained in:
Emmanuel Lepage Vallee 2017-05-11 12:47:06 -04:00
parent 348abc3ed8
commit 0df1586f10
1 changed files with 1 additions and 0 deletions

View File

@ -512,6 +512,7 @@ function menu.clients(args, item_args, filter)
cls_t[#cls_t + 1] = {
c.name or "",
function ()
if not c.valid then return end
if not c:isvisible() then
tags.viewmore(c:tags(), c.screen)
end