bugfix: new client not focused when not assigned to tags

This commit is contained in:
Freehaha 2013-08-26 22:04:51 +10:00
parent c3f96594fd
commit a2931e0bb8
1 changed files with 6 additions and 1 deletions

View File

@ -118,7 +118,12 @@ local function match_client(c, startup)
return return
elseif rules then elseif rules then
local ret = apply_properties(c,{},rules.properties) local ret = apply_properties(c,{},rules.properties)
if ret then return ret end if ret then
if not rules.properties.no_autofocus then
capi.client.focus = c
end
return ret
end
--Add to matches --Add to matches
local tags,tags_src,fav_scr,c_src,mouse_s = {},{},false,c.screen,capi.mouse.screen local tags,tags_src,fav_scr,c_src,mouse_s = {},{},false,c.screen,capi.mouse.screen
for j=1,#(rules.tags or {}) do for j=1,#(rules.tags or {}) do