Skip to content

Commit

Permalink
fix last app in launch focus or hide handler
Browse files Browse the repository at this point in the history
  • Loading branch information
brettinternet committed Mar 27, 2024
1 parent 9a1b089 commit 0cba203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mac/.hammerspoon/http.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ local function getLaunchFocusOrHideAndSwitchBackFn(bundleid)
lastApp:activate(true)
else
hs.application.launchOrFocusByBundleID(bundleid)
lastApp = currentApp
end
lastApp = currentApp

-- Center mouse on Window after focus or switch occurs
currentWindow = hs.window.focusedWindow()
Expand Down

0 comments on commit 0cba203

Please sign in to comment.