Skip to content

Commit

Permalink
Starting MacOS Support.
Browse files Browse the repository at this point in the history
  • Loading branch information
SySyAli committed Jan 4, 2024
1 parent 23ec68e commit 7c47eb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions AppTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ AppTracker::AppTracker()
windowTracker = std::make_unique<WindowsTracker>();
#elif __linux__
windowTracker = std::make_unique<LinuxTracker>();
#elif __APPLE__
windowTracker = std::make_unique<MacOSTracker>();
#else
throw std::runtime_error("Unsupported OS");
#endif
Expand Down
7 changes: 6 additions & 1 deletion IWindowInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,9 @@ void LinuxTracker::startTracking()

XCloseDisplay(display);
}
#endif
#endif

// TODO
void MacOSTracker::startTracking() {
throw std::runtime_error("MacOS has not been implemented yet!");
}

0 comments on commit 7c47eb2

Please sign in to comment.