Permalink
Browse files

Merge pull request #16 from gdott9/master

Restore previously focused client (issue #15)
  • Loading branch information...
bioe007
bioe007 committed Feb 20, 2013
2 parents 62ea299 + 341044f commit cfedaf4872cca72b4ed710f31e8cf0d8718986d0
Showing with 3 additions and 0 deletions.
  1. +3 −0 init.lua
View
@@ -341,8 +341,11 @@ function set(t, args)
index_cache[scr][t.name] = idx
end
+ local c = capi.client.focus
-- set tag properties and push the new tag table
capi.screen[scr]:tags(tags)
+ -- restore previously focused client
+ if c ~= nil then capi.client.focus = c end
for prop, val in pairs(props) do awful.tag.setproperty(t, prop, val) end
-- execute run/spawn

0 comments on commit cfedaf4

Please sign in to comment.