Skip to content
Browse files

Restore previously focused client when setting tags table

  • Loading branch information...
1 parent 62ea299 commit 341044f6eea68be957e91d2e556731b48a495374 @gdott9 gdott9 committed Dec 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 init.lua
View
3 init.lua
@@ -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 341044f

Please sign in to comment.
Something went wrong with that request. Please try again.