git.lucas.co / cce-graph
node-based graph editor
git clone https://git.lucas.co/cce-graph.git

commit09956afb55d016b147fb0da1946a21aef02d1063
parent3d7b10bfb5
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 5c1bcaf..b19ffe4 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -61,6 +61,10 @@ impl GraphApp {
 impl Application for GraphApp {
     type Message = AppMessage;
 
+    fn ui_context(&self) -> Option<&cce_ui::context::UiContext> {
+        Some(&self.ui_context)
+    }
+
     fn new(_qh: &QueueHandle<EngineState<Self>>, _sender: calloop::channel::Sender<Self::Message>) -> Self {
         let mut graph = Graph::new();