From 0c738ad6e56a79facc1d55e2f3d6b09bef72c32b Mon Sep 17 00:00:00 2001 From: haha Date: Sun, 25 Aug 2013 15:22:28 +1000 Subject: [PATCH] fix auto focus --- init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f68157c..7a9c73b 100755 --- a/init.lua +++ b/init.lua @@ -118,7 +118,12 @@ local function match_client(c, startup) return elseif rules then 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 local tags,tags_src,fav_scr,c_src,mouse_s = {},{},false,c.screen,capi.mouse.screen for j=1,#(rules.tags or {}) do