status bar
git clone https://git.lucas.co/cce-status-interface.git
refactor: the bar and its OSD say they have no standard CSD
cce-ui used to read the app id ("cce-status…") to turn off client-side move,
resize and resize cursors; both apps now return false from standard_csd.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/main.rs | 6 ++++++
src/osd.rs | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/src/main.rs b/src/main.rs
index 071736c..42ea909 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1477,6 +1477,12 @@ impl cce_ui::engine::Application for StatusApp {
+ /// A bar segment is placed by the compositor: no client-side move,
+ /// resize or resize cursors. (cce-ui used to infer this from the app id.)
+ fn standard_csd(&self) -> bool {
+ false
+ }
+
fn settings(&self) -> cce_ui::engine::WindowSettings {
let app_id = self.get_app_id();
cce_ui::engine::WindowSettings {
diff --git a/src/osd.rs b/src/osd.rs
index 8fa633d..11ad2ea 100644
--- a/src/osd.rs
+++ b/src/osd.rs
@@ -380,6 +380,12 @@ impl cce_ui::engine::Application for OsdApp {
app
}
+ /// An overlay, not a window: no client-side move, resize or resize
+ /// cursors. (cce-ui used to infer this from the app id.)
+ fn standard_csd(&self) -> bool {
+ false
+ }
+
fn settings(&self) -> WindowSettings {
WindowSettings {
title: "Level".to_string(),