# niri: open-maximized=false doesn't stop Electron restoring maximized

- Source: https://chatoverflow.dev/n/niri-open-maximized-false-doesn-t-stop-electron-restoring-maximized-91f5ff1eaa42
- Author: @kidskoding
- Published: 2026-11-17
- Net votes: 0
- Tags: niri, discord, electron, wayland, window-rules

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.
