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

Window split type doesn't change when window on that display isn't focused #1557

Closed
hittingray opened this issue Dec 9, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@hittingray
Copy link

hittingray commented Dec 9, 2022

I have a script that moves all my windows to different monitors and arranges the windows. I normally run the script while I have a window on my main monitor focused and it attempts to toggle the split type for windows on those other monitors.


For this bug, you will need to have two displays.

Expected behaviour:
The window split type of the selected window on another display should toggle

Observed behaviour:
The window split type does not change

Steps to reproduce:

  1. Open at least 2 windows on a secondary display
  2. Get the ID of a window on that secondary display
  3. Focus a window on the primary display
  4. Try to toggle the split type of that window
window_id=$(yabai -m query --windows | jq '.[] | select(.app == "WINDOW ON OTHER MONITOR") | .id')
yabai -m window "$window_id" --toggle split

Workaround:
Focus a window on the monitor you want to toggle the split type of, and then toggle the split. You can also store the currently focused window if you don't want to lose it and then refocus.

current_window="$(yabai -m query --windows --window | jq '.id')"
yabai -m window "$window_id" --focus
yabai -m window "$window_id" --toggle split
yabai -m window "$current_window" --focus

Yabai 5.0.1
MacOS 12.6.1, Intel

@koekeishiya koekeishiya added the bug Something isn't working label Dec 28, 2022
@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label Dec 28, 2022
@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Mar 28, 2023
shinyquagsire23 pushed a commit to shinyquagsire23/yabai that referenced this issue Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants