From a2931e0bb80dc97ad3a96fbdb80ef166705c9dbf Mon Sep 17 00:00:00 2001 From: Freehaha Date: Mon, 26 Aug 2013 22:04:51 +1000 Subject: [PATCH] bugfix: new client not focused when not assigned to tags --- 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