Merge pull request #24 from blueyed/match_client-dont-tag-with-nil

Do not tag clients with nil tag
This commit is contained in:
Emmanuel Lepage Vallée 2014-03-05 21:38:05 -05:00
commit a235f864f7
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ local function match_client(c, startup)
end
--Add to the current tag if not exclusive
local cur_tag = awful.tag.selected(c.screen)
if awful.tag.getproperty(cur_tag,"exclusive") ~= true then
if cur_tag and awful.tag.getproperty(cur_tag,"exclusive") ~= true then
c:tags({cur_tag})
capi.client.focus = c
return true