git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit790bd3cba855bcefe491ce1be40c99558129365e
parentc20e2d3902
authorLucas Galante <[email protected]>
date2026-08-18 14:07
grid: honor a (relief) line_relief value's width in the fallback

The client installs the full custom material; the fallback's scenefx
chamfer has no custom profile to install, but matching the lip WIDTH
keeps the pre-latch flash geometrically consistent.

Co-Authored-By: Claude Fable 5 <[email protected]>

 src/server/config.rs | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/server/config.rs b/src/server/config.rs
index a019195..734d4ce 100644
--- a/src/server/config.rs
+++ b/src/server/config.rs
@@ -1741,6 +1741,15 @@ fn parse_kdl_config(content: &str) -> Result<Config, String> {
                                     "line_relief" => {
                                         if let Some(val) = entry.value().as_i64() {
                                             surface.desktop_line_relief = val;
+                                        } else if let Some(s) = entry.value().as_string() {
+                                            // A (relief) value: the fallback
+                                            // honors its width — the client
+                                            // installs the full material,
+                                            // but the scenefx chamfer has no
+                                            // custom profile to install.
+                                            if let Some(spec) = cce_ui::relief_spec::ReliefSpec::parse(s) {
+                                                surface.desktop_line_relief = spec.width.round() as i64;
+                                            }
                                         }
                                     }
                                     "cell_fade_inset" => {