Files
peachwm/.omo/evidence/task-10-wlr-fractional-scale-manager-v1.txt
T
huntedbytheirs 8b91bc939c feat(client): add current_scale field to Client and LayerSurface structs
- Add float current_scale to Client struct (HOT section, after corner_radius)
- Add float current_scale to LayerSurface struct (HOT section, after mapped)
- Add config scale range validation [0.25, 4.0] with fprintf warnings
2026-07-05 21:32:22 -04:00

14 lines
547 B
Plaintext

Task: 10. Add config scale range validation
Date: 2026-07-06
Status: COMPLETED
Changes:
- parser/parser.c:374-377 — if scale out of [0.25, 4.0], fprintf warning + clamp to 1.0
- parser/parser.c:378-379 — if scale > 3.0, fprintf warning about unusually large scale
- Uses fprintf(stderr, ...) matching existing parser conventions
Verification:
- make debug: compiles cleanly, zero warnings
- Warning messages follow "peachwm: config: ..." format used elsewhere in parser.c
- Post-clamp check prevents double-warning when scale clamped to 1.0