From e968109ddf58fb160c9e7ff618f43e09463bb9a3 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 6 Mar 2014 03:26:02 +0100 Subject: [PATCH] Do not tag clients with nil tag With no selected tag (e.g. during startup, as long as no client with a rule has been processed), cur_tag would be nil and then the match for exclusive would be ~= true. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fd0bda2..cdd9043 100755 --- a/init.lua +++ b/init.lua @@ -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