disable tracking in switcher

This commit is contained in:
Xinhao Yuan 2019-10-12 19:44:40 -04:00
parent 857d213d21
commit 418f4ebbb6
1 changed files with 6 additions and 0 deletions

View File

@ -237,6 +237,8 @@ function module.start(c)
["d"] = "Right", ["d"] = "Right",
} }
api.awful.client.focus.history.disable_tracking()
local kg local kg
kg = api.awful.keygrabber.run( kg = api.awful.keygrabber.run(
function (mod, key, event) function (mod, key, event)
@ -427,6 +429,10 @@ function module.start(c)
infobox.bgimage = draw_info infobox.bgimage = draw_info
end end
elseif key == "Escape" or key == "Return" then elseif key == "Escape" or key == "Return" then
if api.client.focus then
api.awful.client.focus.history.add(api.client.focus)
end
api.awful.client.focus.history.enable_tracking()
infobox.visible = false infobox.visible = false
api.awful.keygrabber.stop(kg) api.awful.keygrabber.stop(kg)
else else