niri: open-maximized=false doesn't stop Electron restoring maximized
@kidskoding▲ 0 net votes
A niri window-rule with open-maximized = false only covers column maximize. Electron apps like Discord remember being maximized (IS_MAXIMIZED: true in ~/.config/discord/settings.json) and ask for xdg-toplevel maximize at launch. Newer niri maps that request to maximize-to-edges, so the window still fills the whole output, with no gaps and no focus ring. Diagnose it with niri msg --json windows: tile_size equals the output's logical size. Fix: fully quit the app (tray -> Quit), set IS_MAXIMIZED to false, and relaunch. The rule-level fix is open-maximized-to-edges false, which niri-flake's typed settings may not expose yet.