[hammerspoon] also update last focused time on focusing for Quitter

pull/39/head
Alpha Chen 2 years ago
parent d70b0dbfff
commit 0f1876f2b8

@ -40,7 +40,9 @@ function obj:start()
for app, _ in pairs(self.quitAppsAfter) do
self.windowFilter:allowApp(app)
end
self.windowFilter:subscribe(hs.window.filter.windowUnfocused, function(window, appName)
self.windowFilter:subscribe(
{hs.window.filter.windowFocused, hs.window.filter.windowUnfocused},
function(window, appName)
local name = window:application():name()
self.lastFocused[name] = os.time()
end)

Loading…
Cancel
Save