Merge pull request #9 from blueyed/use-client-jumpto
Use `awful.client.jumpto` in `selectfn`
This commit is contained in:
commit
fe77a77d62
7
init.lua
7
init.lua
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue