From 418f4ebbb615c3bcdb9661612b90f78d869b3891 Mon Sep 17 00:00:00 2001 From: Xinhao Yuan Date: Sat, 12 Oct 2019 19:44:40 -0400 Subject: [PATCH] disable tracking in switcher --- switcher.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/switcher.lua b/switcher.lua index 18cb864..b9ac021 100644 --- a/switcher.lua +++ b/switcher.lua @@ -237,6 +237,8 @@ function module.start(c) ["d"] = "Right", } + api.awful.client.focus.history.disable_tracking() + local kg kg = api.awful.keygrabber.run( function (mod, key, event) @@ -427,6 +429,10 @@ function module.start(c) infobox.bgimage = draw_info end 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 api.awful.keygrabber.stop(kg) else