git.lucas.co / cce-files
file manager
git clone https://git.lucas.co/cce-files.git

commit2549372e91b966fcde658f7116a54721747702f6
parent3d72e1c02b
authorLucas Galante <[email protected]>
date2026-06-24 10:26
Implement ui_context for Application to support default draggable window

 src/main.rs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main.rs b/src/main.rs
index 3900578..1fc24f9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -487,6 +487,10 @@ impl FilesystemApp {
 impl Application for FilesystemApp {
     type Message = Message;
 
+    fn ui_context(&self) -> Option<&cce_ui::context::UiContext> {
+        Some(&self.ui_context)
+    }
+
     fn new(_qh: &QueueHandle<cce_ui::engine::EngineState<Self>>, sender: calloop::channel::Sender<Self::Message>) -> Self {
         // Parse command line arguments
         let args: Vec<String> = std::env::args().collect();