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

commit15c4e94e3eb8878cdd5b68bb239a92f3f20291e3
parentf8cc29e9b7
authorLucas Galante <[email protected]>
date2026-06-23 14:23
feat: report focused window mode in status layout module

 src/server/status_server.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/server/status_server.rs b/src/server/status_server.rs
index a554836..ebc0207 100644
--- a/src/server/status_server.rs
+++ b/src/server/status_server.rs
@@ -238,10 +238,10 @@ pub unsafe fn build_status_update(wm: &crate::window_manager::WindowManager) ->
     let escaped = text.replace('\\', "\\\\").replace('"', "\\\"");
     let tags_json = format!("{{\"text\": \"{}\", \"tooltip\": \"Camera State\"}}", escaped);
 
-    let layout_text = if wm.expose_active {
-        "Expose".to_string()
+    let layout_text = if !focused_window.is_null() {
+        (*focused_window).tiling_mode.as_str().to_string()
     } else {
-        "Pannable".to_string()
+        "---".to_string()
     };
 
     let title_text = if !focused_window.is_null() {