huntedbytheirs
fb0f49e861
perf(wave1): reduce Config caps, reorder Client/Monitor for cache
...
Wave 1 changes:
- Reduce CFG_MAX_KEYBINDS 256→128, CFG_MAX_STRLEN 256→64, CFG_MAX_ARGS 16→8
→ saves ~2.5 MB BSS from Config struct
- Add truncation warnings to config_load when keybind/button/scroll limit reached
- Reorder Client struct: HOT fields (type, mon, tags, floating flags, geom) in first
cache line, COLD fields (wl_listeners) at end — saves cache misses in arrange()
- Reorder LayerSurface struct similarly
- Split Monitor into Monitor/MonitorCold: hot fields (~120B) stay inline, cold layout
state lazily allocated on first dwindle/master use
- All cold-field accesses through m->cold-> indirection
- cleanupmon frees m->cold
- Zero-warning build with clang -Werror -Wpedantic
2026-07-02 23:35:37 -04:00
huntedbytheirs
d3999a9d3c
Fix rounded corners
...
they were being dumb
2026-07-02 23:00:13 -04:00
huntedbytheirs
e4c3990cba
feat(config): parse effects.windows.shadows from Lua config
...
Add CfgEffectsWindowShadows struct (12 fields) and CfgEffectsWindows.shadows
member. Add wlr_scene_shadow *shadow field to Client struct for runtime
shadow node tracking. Update example/config.lua with full shadow config
block.
The config parser handles missing shadows table gracefully (all default).
2026-07-02 19:44:49 -04:00
huntedbytheirs
4ac03d4059
feat(effects): implement window rounded corners via scenefx
...
- Parse effects.windows.rounded/rounding from Lua config
- Add CfgEffectsWindows and CfgEffects structs to Config
- Switch to fx_renderer_create for scenefx support
- Replace 5 wlr/types/wlr_scene.h includes with scenefx variant
- Add config_get_corner_radius() helper (light=6px, heavy=14px)
- Apply corner_radii_top/bottom/left/right to 4 border rects
- Apply wlr_scene_buffer_set_corner_radius to surface buffers
- Disable on fullscreen, restore on exit
- Re-apply on resize and config hot-reload
- Add -Wno-extra-semi for scenefx header compatibility
- All targets compile cleanly (make test passes)
2026-07-02 05:00:26 -04:00
huntedbytheirs
c529815d54
refactor: standardize headers to #pragma once, add [[nodiscard]]/[[maybe_unused]] annotations
2026-07-02 02:07:04 -04:00
huntedbytheirs
b5ccb2621b
Massive code refactor
2026-07-02 01:24:16 -04:00
huntedbytheirs
f529f03315
Massive code cleanup
...
Cleaned up:
Makefile
config.mk/.h
nix files (by removing them for now)
Removed dwl likeness.
2026-06-28 17:39:02 -04:00
huntedbytheirs
763512a24f
peachwm birth
2026-06-28 17:26:07 -04:00