koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.01k stars 652 forks source link

New windows are not always opened tilted. #2458

Open nakrule opened 3 weeks ago

nakrule commented 3 weeks ago

Description:

Issue Summary: Yabai does not always tilt new windows. Closing the application and re-opening it usually solves the issue. This problem seems to occur randomly and has been observed with multiple applications such as Chrome, Outlook, Spotify, and MacOS Calendar.

Steps to Reproduce:

  1. Open a new application.
  2. Observe that the window does not always tilt as expected.
  3. Close the application (close, not minimize) and re-open it.
  4. Notice that the window now tilts correctly. If it does not, repeat step 3 and it should work after a 2-3 tries max.

Expected Behavior: New windows should always tilt as configured.

Actual Behavior: New windows sometimes do not tilt, and the issue is resolved by closing and re-opening the application.

Environment:

Additional Information:

# bsp, stack or float
yabai -m config layout bsp

# When a window is splitted horizontally, the new one goes to the bottom (or right with vertical
# split)
yabai -m config window_placement second_child

# padding/gaps
yabai -m config top_padding 12
yabai -m config bottom_padding 12
yabai -m config left_padding 12
yabai -m config right_padding 12
yabai -m config window_gap 12

# mouse settings

# place mouse in focused windows
yabai -m config mouse_follows_focus on

yabai -m config mouse_modifier alt
# left click + alt = drag windows
yabai -m config mouse_action1 move

# right click + alt = resize windows
yabai -m config mouse_action2 resize

# move a windows in the middle of another windows to swap them
yabai -m mouse_drop_action swap

# Disaple specific apps (not managed by yabai)
yabai -m rule --add app="^System Settings$" manage=off
pyinto commented 1 week ago

try these: