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)
return function(c)
restore()
-- Pop to client tag
awful.tag.viewonly(c:tags()[1], c.screen)
-- Focus and raise
if c.minimized then
c.minimized = false
end
capi.client.focus = c
awful.screen.focus(c.screen)
c:raise()
awful.client.jumpto(c)
end
end