From ee869fd447811c9c49250bb9848d02c1ff4dea27 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 11 Jul 2012 19:18:37 +0200 Subject: [PATCH] tags: when switching to a given tag, give focus to the master window --- rc/tags.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc/tags.lua b/rc/tags.lua index 0965d89..5929fd7 100644 --- a/rc/tags.lua +++ b/rc/tags.lua @@ -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 ()