Focus on the recently focused window #2052
-
All my settings and preferences windows are set to manage=off. However, when I close that window, it doesn't focus back on the main window, but I have to click every time. Also, focus_follows_mouse has never worked for me. I'm on Sonoma 14.2.1 and Yabai 6.0.6. Is this issue related to Sonoma, or am I doing something wrong? Here's my config. I have added only two rules related to this issue: Safari app and it's settings window titled "General". When I close General, it won't focus back to Safari main window.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I have no idea what the consequences of disabling macOS WindowManager is (and I do NOT do this),
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:
Edit: Note that window_destroyed signal does not correctly trigger in v6.0.6 due to a bug #2048 |
Beta Was this translation helpful? Give feedback.
-
I tried both deleting the code that disables WindowManager, and adding your code, but it didn't worked. So I guess it's because of the bug in 6.0.6? |
Beta Was this translation helpful? Give feedback.
-
Adding your code fixed the issue now. |
Beta Was this translation helpful? Give feedback.
I have no idea what the consequences of disabling macOS WindowManager is (and I do NOT do this),
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: