tags: when switching to a given tag, give focus to the master window

This commit is contained in:
Vincent Bernat 2012-07-11 19:18:37 +02:00
parent 5671652669
commit ee869fd447

View file

@ -42,6 +42,12 @@ for i = 1, #tags do
sharetags.tag_move(t, mouse.screen)
end
awful.tag.viewonly(tags[i])
-- Select the master window
local m = awful.client.getmaster()
if m then
client.focus = m
m:raise()
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()