Skip to content

fix: focus target window and default focusOnApp to true - #192

Merged
pablopunk merged 2 commits into
mainfrom
fix/focus-window
Sep 25, 2026
Merged

pablopunk merged 2 commits into
mainfrom
fix/focus-window

Conversation

@pablopunk

Copy link
Copy Markdown
Owner

Fixes #13 comment: window in back did not gain focus.

  • WindowManager.focus now sets kAXFocusedWindowAttribute on the app and kAXMain/kAXFocused on the window before raise, with activateIgnoringOtherApps, so the dragged window gains focus and not only the app.
  • MouseTracker now reads focusOnApp with default true to match the Preferences toggle (UI showed ON but code read OFF until a manual toggle wrote the key).

Build succeeds, 50 tests pass.

@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
swiftshift-app Ignored Ignored Sep 25, 2026 2:28pm UTC

@codesandbox

codesandbox Bot commented Sep 25, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web Editor • VS Code • Insiders

Open Preview

@pablopunk
pablopunk merged commit 714fcd7 into main Sep 25, 2026
6 checks passed
@pablopunk
pablopunk deleted the fix/focus-window branch September 25, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make "focus on app" an option

1 participant