git.lucas.co / cce-authenticator
login authentication (PAM + fingerprint)
git clone https://git.lucas.co/cce-authenticator.git

commitc97c90b7ce6c3ab6e583bf68440a1f588aac3db9
parentb9b72eedfd
authorLucas Galante <[email protected]>
date2026-06-24 10:25
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 be30cae..fb65e40 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -89,6 +89,10 @@ struct AuthenticatorApp {
 impl Application for AuthenticatorApp {
     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 font_system = FontSystem::new();
         let bg = ContentBg::new();