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

commit74a67f55dbfd57169cd02abfd5a884ec75a4fed2
parent600533930a
authorLucas Galante <[email protected]>
date2026-06-15 08:42
Restrict status bar window height to bar_height and fix install target path

 Makefile                     | 4 ++--
 src/server/window_manager.rs | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 338b6f7..fbba089 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ build:
 
 install: build
 	mkdir -p ~/.local/bin
-	@if [ -f target/release/cce ]; then \
-		install -m 755 target/release/cce ~/.local/bin/cce; \
+	@if [ -f ../target/release/cce ]; then \
+		install -m 755 ../target/release/cce ~/.local/bin/cce; \
 	else \
 		echo "Error: cce binary not found"; exit 1; \
 	fi
diff --git a/src/server/window_manager.rs b/src/server/window_manager.rs
index 306b6f3..e040ddf 100644
--- a/src/server/window_manager.rs
+++ b/src/server/window_manager.rs
@@ -671,15 +671,16 @@ impl WindowManager {
 
                 if app_id.as_deref() == Some("cce-status-interface") {
                     let wlr_box = (*output).sent.box_layout();
+                    let bar_h = self.layout.bar_height as u32;
                     (*win_ptr).rendering_requested.x = wlr_box.x;
                     (*win_ptr).rendering_requested.y = wlr_box.y;
                     (*win_ptr).wm_requested.dimensions = Some(crate::window::Dimensions {
                         width: wlr_box.width as u32,
-                        height: wlr_box.height as u32,
+                        height: bar_h,
                     });
                     (*win_ptr).wm_requested.bounds = crate::window::Dimensions {
                         width: wlr_box.width as u32,
-                        height: wlr_box.height as u32,
+                        height: bar_h,
                     };
                     (*win_ptr).wm_requested.tiled = 0;
                     (*win_ptr).wm_requested.ssd = false;