Merge pull request #9 from blueyed/use-client-jumpto

Use `awful.client.jumpto` in `selectfn`
This commit is contained in:
Quan Guo 2015-04-21 23:22:31 +02:00
commit fe77a77d62
1 changed files with 2 additions and 5 deletions

View File

@ -70,15 +70,12 @@ revelation = {
local function selectfn(restore) local function selectfn(restore)
return function(c) return function(c)
restore() restore()
-- Pop to client tag
awful.tag.viewonly(c:tags()[1], c.screen)
-- Focus and raise -- Focus and raise
if c.minimized then if c.minimized then
c.minimized = false c.minimized = false
end end
capi.client.focus = c awful.client.jumpto(c)
awful.screen.focus(c.screen)
c:raise()
end end
end end