Improve focus handling

* Display current focus window / process
 * Match against app name instead of window name on MacOS when using
   Process condition
 * Clean up
This commit is contained in:
WarmUpTill
2022-11-03 20:16:13 +01:00
committed by WarmUpTill
parent 267ab6a7c1
commit 50e26aba72
11 changed files with 167 additions and 31 deletions

View File

@@ -148,6 +148,7 @@ struct SwitcherData {
std::vector<std::string> ignoreIdleWindows;
std::string lastTitle;
std::string currentTitle;
std::string currentForegroundProcess;
std::deque<ScreenRegionSwitch> screenRegionSwitches;
std::pair<int, int> lastCursorPos = {0, 0};