Unexpected maximize-column behavior after toggling a full-width window floating and back
Unexpected maximize-column behavior after toggling a full-width window floating and back
Version
niri 26.04 (8ed0da4)Steps to reproduce
- Start with a tiled column at 50% width.
- Run:
niri msg action maximize-column- Toggle the window to floating and then back to tiled:
niri msg action toggle-window-floating
niri msg action toggle-window-floating- Run:
niri msg action maximize-columnActual behavior
The column remains at full width, and maximize-column has no visible effect.
Running maximize-column again also has no visible effect.
If I manually change the column width first:
niri msg action set-column-width "50%"
niri msg action maximize-columnthen maximize-column behaves normally again.
I can reproduce this when the window is full-width before toggling it to floating and back.
If the window is not full-width before toggling floating, I do not observe the same behavior.
https://github.com/user-attachments/assets/df99d42e-6a2f-4404-97a9-a6977a616168
Expected behavior / question
I'm not sure whether this is intentional.
Should toggling a full-width window to floating and back preserve the previous column width used by maximize-column, or is the current behavior expected because the window is placed into a new column when returning to the tiling layout?
Source: niri-wm/niri