From 962891928105c6bd68a360ed27004b73a4fce4c8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 4 Jan 2017 03:35:46 -0500 Subject: [PATCH] alttab: Use c:jump_to() It may use the wrong tag, but is otherwise more stable than the current solution. --- impl/alttab/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impl/alttab/init.lua b/impl/alttab/init.lua index 22b665a..0d4e8cc 100644 --- a/impl/alttab/init.lua +++ b/impl/alttab/init.lua @@ -232,9 +232,9 @@ local function new(args) checkable = (not auto_release) and v.screen == scr, checked = v.screen == scr and (not auto_release and is_in_tag(t,v)) or nil, 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 - tag.viewonly(t) + v:jump_to() lock_history = false end capi.client.focus = v