Skip to content

🐞 Differentiate identically-framed windows within the same process#1043

Merged
MrKai77 merged 2 commits intodevelopfrom
1021-cannot-move-focus-to-overlapping-windows-with-matching-positions-and-sizes
Feb 5, 2026
Merged

🐞 Differentiate identically-framed windows within the same process#1043
MrKai77 merged 2 commits intodevelopfrom
1021-cannot-move-focus-to-overlapping-windows-with-matching-positions-and-sizes

Conversation

@MrKai77
Copy link
Owner

@MrKai77 MrKai77 commented Feb 5, 2026

CGWindowListCopyWindowInfo returns a CGWindowID, so it makes sense to verify that it matches an initialized Window instance before returning it. Previously, this check was missing, so if a process had multiple windows with identical frames, we would simply return the frontmost one. Now, we can differentiate between them, fixing #1021.

A few window frame calculation bug fixes were also added to prevent the preview from showing when the active action is a focus action, along with improvements to how DirectionalNavigationUtility handles identically framed windows, even when they come from different processes.

@MrKai77 MrKai77 self-assigned this Feb 5, 2026
@MrKai77 MrKai77 added the Bug label Feb 5, 2026
@MrKai77 MrKai77 linked an issue Feb 5, 2026 that may be closed by this pull request
6 tasks
@MrKai77 MrKai77 merged commit 204dab3 into develop Feb 5, 2026
1 check passed
@MrKai77 MrKai77 deleted the 1021-cannot-move-focus-to-overlapping-windows-with-matching-positions-and-sizes branch February 5, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Cannot move focus to overlapping windows with matching positions and sizes

1 participant