Repository navigation
v2.1 — polish pass + source-available license
A bug-fix and quality-of-life release on top of the v2.0 overhaul.
Fixed
- Fullscreen detection was wrong.
isActiveAppFullscreen()was inspecting Click2Minimize's ownNSWindows — it always returned false, so the click-to-minimize fired even on fullscreen apps. Rewritten to readAXFullScreenon the frontmost app via Accessibility. - Dock-item ignore-list bug.
"Launchpad||Trash||Downloads".contains(name)was substring-matching — would catch any app with "Trash" or "Downloads" in its name. Replaced with properSetmembership. - Debounce never actually debounced. Bursts of
didLaunch / didActivate / activeSpaceDidChangewere each triggering a fresh AppleScript dock query. Rewritten as a trailing-edgeDispatchWorkItemat 300 ms. - Deprecated API.
NSWorkspace.launchApplication(_:)swapped foropenApplication(at:configuration:completionHandler:).
Improved
- All
print()calls migrated toos.Logger(subsystemcom.idemfactor.Click2Minimize). Release builds no longer write to stdout. - Launch-at-login is now opt-in via a Settings toggle. Was unconditional before — existing installs that were auto-registered stay registered until toggled off.
- Settings sheet redesigned: launch-at-login row, cleaner spacing, footnote anchored.
build_dmg.shactually builds universal (arm64 + x86_64) now — the previous version had the comment but not theARCHSflags.
Packaging
- Added LICENSE: PolyForm Noncommercial 1.0.0 — source-available, personal/non-profit use OK, commercial use needs a separate license.
- New brutalist README with light/dark hero banners.
- Bundle version aligned:
MARKETING_VERSION1.4 → 2.1 so the in-app version matches the GitHub release tag.
Install
- Download
Click2Minimize.dmgbelow. - Drag the app into
/Applications. - First launch: right-click → Open to get past Gatekeeper (ad-hoc signed, not notarized).
- Grant Accessibility (and Automation if asked) when prompted.