|
|
|
|
|
by bsnnkv
197 days ago
|
|
Took a look at this and it feels like it is implemented using public macOS frameworks so it shouldn't break between macOS updates My guess is that kAXWindowMovedNotification, kAXWindowResizedNotification, kAXMainWindowChangedNotification etc. are being listened to on the currently focused window using the Accessibility framework, and there is a callback which gets the latest position of the tracked window whenever it is fired, and uses that position as a reference to update the border position The border window itself is most likely an NSWindow, which is why the tracking of the border with the target window feels quite sluggish |
|