Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config for which window to focus after active one was closed #32

Draft
wants to merge 4 commits into
base: ahk-v2
Choose a base branch
from

Conversation

imawizard
Copy link
Owner

No description provided.

@imawizard imawizard added the enhancement New feature or request label Jun 22, 2024
@imawizard imawizard force-pushed the features/focus-after-close branch from 88d8fec to 7517f6f Compare June 22, 2024 20:22
@imawizard imawizard changed the title Add config for which tile to focus after close (analogous to tilingInsertion) Add config for which window to focus after active one was closed Jun 22, 2024
imawizard and others added 4 commits July 30, 2024 12:07
Works the same as `focusWorkspaceByWindow: true`, but keeps the current
monitor active, instead of switching to the workspace's last active
monitor.
TODO: fenster verschwinden z.B. auch bei send-to-monitor
When the active window was closed, this setting decides which window is
then to be focused (so kind of like the opposite of tilingInsertion).
There seem to be cases where – when closing e.g. an active explorer
window – a "hidden" event occurs first, then a "focus" event according
to z-order and eventually a "destroyed" event. Because of the
focus-switch in between the destroyed window is not the active one
anymore and no window is actively set as the new active one with respects
to focusAfterClose.
This commit adds remembering a hidden window if it was active, and in
case said window gets closed within a specific duration after being
hidden, it'll be treated as a regular close event of the active window.
@imawizard imawizard force-pushed the features/focus-after-close branch from 7517f6f to 1c7552b Compare September 19, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant