asmvik / asmvik/yabai

Windowed-Fullscreen does not respect External Bar setting

Open
#2,776 3 comments 0 reactions 0 assignees View on GitHub
undetermined
Dominant language
C
Stars
29.6k
Forks
750
PR merge metrics
No merged PRs in 30d

Description

Image

A window set to `windowed-fullscreen` mode does not adjust for the external bar specified in config.

#### Expected Behavior:
`windowed-fullscreen` windows should not overlap with the external bar area specified in yabai configuration.

#### Actual Behavior:
`windowed-fullscreen` windows spread in the external bar area.

Set up

- yabai version: v7.1.17
- Menu bar: Auto-Hide
- External bar: Sketchybar
- MacOS 12.7.4 Monterey

#### Steps to Reproduce:

Configs

`yabairc`:
```sh
yabai -m config external_bar all:12:0
```

`skhdrc`:
```ini
alt - b : yabai -m window --toggle windowed-fullscreen
```

I used the above command initially, which led to this behavior. Then I also tried the solution suggested for a similar problem (overlap with notch) in https://github.com/asmvik/yabai/issues/2216 to float the window first:

`skhdrc`:
``` ini
alt - b : yabai -m window --toggle float; yabai -m window --toggle windowed-fullscreen
```
but the window still didn't adjust for the external bar:

The problem only happens with `windowed-fullscreen` windows. The BSP managed layer properly adjusts for the external bar. The same window spreads to the external bar area when set to `windowed-fullscreen`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with `external_bar all:12:0` and the `windowed-fullscreen` toggle described in the issue, then trace how yabai handles the external bar for windowed-fullscreen versus BSP-managed windows. Done means the windowed-fullscreen bounds leave the configured external bar area while the existing BSP behavior remains unchanged.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.