srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/docs/PRIOR_ART.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2026-07-06 11:32:00 +0200
committersrdusr <[email protected]>2026-07-06 11:32:00 +0200
commitad5a7349d28ad52032fff6885e2d8b80ea28dbce (patch)
tree9680b085e362a443f411ed36d1c22b40a8969163 /docs/PRIOR_ART.md
parent744757fad22db7a5ebebca9a685cdb00589a1b02 (diff)
downloadsrdwm-ad5a7349d28ad52032fff6885e2d8b80ea28dbce.tar.gz
srdwm-ad5a7349d28ad52032fff6885e2d8b80ea28dbce.zip
Drop placeholder-sized window-memory entries at load
An earlier cleanup deleted five of them from window-memory.json by hand and they came back within minutes. The reason is that a running compositor holds the whole table in memory and save_all writes all of it back on the next window close, so a hand-edited file cannot survive a running session. Filtering on load is the only point where the fix sticks. remove_window already refuses to record a size the client never chose, so nothing new is captured this way; this clears what was written before that landed. Those entries are self-perpetuating - a remembered size makes the next launch non-provisional, which forces the client to that size rather than asking it to pick, which writes the same value back on close - so an affected app can never escape on its own. A window genuinely sized exactly 800x632 loses its remembered size once and gets it back at the next real resize or close. Two tests cover the exact match and that sharing only one dimension is not enough. 531 tests pass, clippy clean.
Diffstat (limited to 'docs/PRIOR_ART.md')
0 files changed, 0 insertions, 0 deletions