| ... | @@ -11,7 +11,11 @@ const MAC_MODIFIER_PAIR_DEVICE_MASKS: Record<SnapShotModifier, readonly [number, | ... | @@ -11,7 +11,11 @@ const MAC_MODIFIER_PAIR_DEVICE_MASKS: Record<SnapShotModifier, readonly [number, |
| 11 | meta: [0x8, 0x10], | 11 | meta: [0x8, 0x10], |
| 12 | }; | 12 | }; |
| 13 | | 13 | |
| | 14 | // The CoreGraphics query connects osascript to the window server, which registers it as a |
| | 15 | // foreground app attributed to T3 Code. Go background-only first so it never gets a Dock tile. |
| 14 | const POLLER_SCRIPT = ` | 16 | const POLLER_SCRIPT = ` |
| | 17 | ObjC.import("AppKit"); |
| | 18 | $.NSApplication.sharedApplication.setActivationPolicy($.NSApplicationActivationPolicyProhibited); |
| 15 | ObjC.import("CoreGraphics"); | 19 | ObjC.import("CoreGraphics"); |
| 16 | ObjC.import("unistd"); | 20 | ObjC.import("unistd"); |
| 17 | function run(argv) { | 21 | function run(argv) { |