Simple C99 sample showing how to create a border that will follow the focused window on macOS.
Requires access to the accessibility API. Supports macOS High Sierra and newer.
Requires xcode command line tools
# simply clone repo and run make
make