-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
'display --focus' not working when windows stacked #1198
Comments
I have a similar problem. I have an external display connected which is set to be the main display, so it is N.1 display in yabai. It happens that the command |
Hello, i have the same problem.
|
I also have this issue, if the destination display of Edit: I've tried every combination I can think of and focusing across displays breaks focus every time. |
Hm I am unable to reproduce this using yabai v4.0.0 on macOS 12.3.1 (Apple Silicon). I have tested using bsp layout with stacked nodes on the destination display, and the window is focused correctly. The above tests worked using both Is this happening with specific applications? Are you running Hammerspoon or other accessibility software that could interfere in some way? |
I just quit Hammerspoon, which I was using only for Stackline, and focus now works correctly. My focus command is |
I think this is a problem with Stackline, the Hammerspoon window "steals" focus for whatever reason. What yabai is doing is simply sending focus to the window that macOS says is the "front-most" window on the destination display. I'd like to make something like Stackline built-in to yabai itself in the future. There are tons of things that can be improved regarding the stack-system. |
It's a shame because the workflow with these commands was getting really good:
|
I believe this is the relevant issue: AdamWagner/stackline#67 A possible workaround that would let you keep Stackline running could be the following: Instead of Docs for query output: https://github.com/koekeishiya/yabai/blob/master/doc/yabai.asciidoc#query |
I got it working, thank you!!
|
I can also stack across displays now:
|
Closing this as there isn't really anything yabai can do about this, use the workaround mentioned above if Stackline is unable to fix the issue on their end. |
I don't have stackline and hammerspoon, I had them in the past but now I removed them, however I still have the same issue. I noticed that if I reinstall yabai or force the update, it works for the first like 5 minutes, then it starts giving the same problem again. |
Having the same problem where switching to a desktop doesn't focus any windows. With or without Hammerspoon. I have never used stack line. Any advice? |
Hey really appreciate the updates - I have been having an nagging issue I was hoping would be resolved with this release but doesn't seem to be. I use the following config to move my focus between windows and monitors (displays):
shift + ctrl + alt + cmd - a : yabai -m window --focus west || yabai -m display --focus west
alt + shift - s : yabai -m window --focus south
shift + ctrl + alt + cmd - d : yabai -m window --focus east || yabai -m display --focus east
alt + shift - w : yabai -m window --focus north
This works fine when windows are not stacked. When windows are stacked, I am still able to move focus between windows, but when I try to switch focus between monitors I lose focus (ie. no window is in focus and the focus stays on the current monitor/display).
Hopefully this is a fixable issue with my config but I thought I would open here in case anyone is having the same issue.
Thanks!
The text was updated successfully, but these errors were encountered: