Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make client-to-tag binding example work properly

  • Loading branch information...
commit 4cbd353c1e15cd6c912f9548d681a8e8fc69484c 1 parent 62ea299
@freehaha freehaha authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.