alttab: Use c:jump_to()

It may use the wrong tag, but is otherwise more stable than the
current solution.
This commit is contained in:
Emmanuel Lepage Vallee 2017-01-04 03:35:46 -05:00
parent 393b23fbd6
commit 9628919281
1 changed files with 2 additions and 2 deletions

View File

@ -232,9 +232,9 @@ local function new(args)
checkable = (not auto_release) and v.screen == scr, checkable = (not auto_release) and v.screen == scr,
checked = v.screen == scr and (not auto_release and is_in_tag(t,v)) or nil, checked = v.screen == scr and (not auto_release and is_in_tag(t,v)) or nil,
button1 = function(a,b,c,d,no_hide) button1 = function(a,b,c,d,no_hide)
if t and t.selected == false and not util.table.hasitem(v:tags(),capi.screen[v.screen].selected_tag) then if v and not v:isvisible() then
lock_history = true lock_history = true
tag.viewonly(t) v:jump_to()
lock_history = false lock_history = false
end end
capi.client.focus = v capi.client.focus = v