Skip to content
Browse files

Merge pull request #19 from freehaha/master

client-to-tag binding example doesn't work properly
  • Loading branch information...
2 parents 5c96274 + 4cbd353 commit b12b66e6a26a2c5fbec6c1119dd29b4f8faf0fe0 @bioe007 committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 example.rc.lua
View
5 example.rc.lua
@@ -433,8 +433,11 @@ for i = 1, (shifty.config.maxtags or 9) do
-- move clients to other tags
awful.key({modkey, "Shift"}, i, function()
if client.focus then
+ -- remember the focused client because getpos() switch
+ -- to new tag (if it doesn't exist) and the client lost focus
+ local c = client.focus
t = shifty.getpos(i)
- awful.client.movetotag(t)
+ awful.client.movetotag(t, c)
awful.tag.viewonly(t)
end
end))

0 comments on commit b12b66e

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