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

commit2905eca7f413631f3ff47ef45da756d5e112d619
parent0cf3e7ed82
authorLucas Galante <[email protected]>
date2026-06-30 15:24
Scale cell corner radius by zoom factor so that cell rounded corners and fade shaders scale proportionally during zoom

 Makefile             | 1 +
 src/server/output.rs | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9da2ed4..502ffdb 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@ install: build
 	mkdir -p ~/.local/bin
 	@if [ -f ../target/release/cce-fx ]; then \
 		install -m 755 ../target/release/cce-fx ~/.local/bin/cce-fx; \
+		ln -sf cce-fx ~/.local/bin/cce; \
 	else \
 		echo "Error: cce-fx binary not found"; exit 1; \
 	fi
diff --git a/src/server/output.rs b/src/server/output.rs
index ed91059..5f6039b 100644
--- a/src/server/output.rs
+++ b/src/server/output.rs
@@ -652,7 +652,8 @@ impl Output {
                         continue;
                     }
                     let draw_fade = cell_fade_inset > 0 && !draw_low_res;
-                    let cell_rect = get_rect(rw, rh, cell_color.as_ptr(), rel_x, rel_y, cell_corner_radius);
+                    let scaled_corner_radius = (cell_corner_radius as f64 * zoom) as i32;
+                    let cell_rect = get_rect(rw, rh, cell_color.as_ptr(), rel_x, rel_y, scaled_corner_radius);
                     if !cell_rect.is_null() {
                         let inset_scaled = if draw_fade {
                             (cell_fade_inset as f64 * zoom) as i32