Asymmetric gaps, dwindle layout split behavior

Hello, I have a bug report/feature request, don’t know how to call it for now.

I have a very specific use case for asymmetric window gaps, I use them to pin my PiP window in the corner of the screen (screenshot 1) which works flawlessly.

The rules:

workspace = m[$monitor2]w[pv1-9], gapsout:4 1578 4 4

windowrule = float, title:^(Picture in picture)$
windowrule = pin, title:^(Picture in picture)$
windowrule = movewindow 100%-1573 100%-925, title:^(Picture in picture)$ 
windowrule = size 1568 885, title:^(Picture in picture)$
windowrule = noinitialfocus, title:^(Picture in picture)$
windowrule = opacity 1 override 1 override, title:^(Picture in picture)$
windowrule = nodim, title:^(Picture in picture)$
windowrule = monitor $monitor2, title:^(Picture in picture)$
windowrule = focusonactivate off, title:^(Picture in picture)$

The issue is, when i open anything other on the monitor, I would expect the tiled portion (cmatrix) to split vertically, because of the dwindle layout, but it does this:

The second window is open, but has size -300,1396according to hyprctl clients. when i switch the split direction it fixes it self.

The expected behavior:

I guess the dwindle layout does not take the gaps into account of calculating aspect ratio for v/h splitting. Is there something I can do on my side?
Also does anyone have any idea why does the screenshot 2 happen?

thanks for any help!

that’s a horribly cursed setup, but it looks like a bug indeed, might wanna report on the repo.

1 Like

Should I create an issue or discussion on github?

yeah, discussion please

Moved here: Dwindle layout does not respect asymmetric gap sizes when deciding split direction. · hyprwm/Hyprland · Discussion #11581 · GitHub