asmvik / asmvik/yabai

New windows are not always opened tilted.

Open
#2,458 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
29.6k
Forks
758
PR merge metrics
No merged PRs in 30d

Description

**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:**
- **Yabai Version:** yabai-v7.1.3
- **Operating System:** macOS Sonoma 14.7

**Additional Information:**
- The issue appears to be random and not specific to any particular application.
- No specific steps have been identified to consistently reproduce the issue.
- My yabai config file:

```
# 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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by testing the reported yabai-v7.1.3 configuration on macOS Sonoma 14.7 with Chrome, Outlook, Spotify, and Calendar, recording when new windows fail to tile. No source file or test is identified; done means reliably identifying and fixing the cause so new windows tile without closing and reopening the application.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.