Skip to content

Focus on the recently focused window #2052

Answered by koekeishiya
hamadahiro asked this question in Q&A
Discussion options

You must be logged in to vote

I have no idea what the consequences of disabling macOS WindowManager is (and I do NOT do this),

# disable macos window manager
launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &

so maybe that is the issue? Usually macOS would focus the Safari window automatically when the Settings window is closed.

I do have this signal in my config to focus a new window when a window is closed in cases where macOS does not do it automatically:

yabai -m signal --add event=window_destroyed active=yes action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse &> /dev/null || yabai -m window --focus \$(yabai -m query --windows --sp…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by koekeishiya
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants