login greeter
git clone https://git.lucas.co/cce-display-manager.git
refactor: build the app with Application::create
Application::new(qh, sender) took the session's Wayland queue handle,
which no client ever used, and calloop's sender; cce-ui is retiring it
for create(sender: AppSender<_>), which names no window system. The
body is unchanged: an app that keeps calloop's sender converts the
AppSender into it on the first line, and the now-unused QueueHandle and
EngineState imports go.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/main.rs | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index 9049c67..40bbc76 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,7 +3,6 @@ use cce_ui::widget::{
Button, ContentBg, WidgetHost, ElementState, MouseButton, Key, NamedKey, KeyEvent, TextBox,
focus, MouseScrollDelta
};
-use wayland_client::QueueHandle;
use cce_ui::engine::{EngineState, LogicalPosition, LogicalSize, WindowSettings, Vertex, quad_vertices};
use calloop::channel;
@@ -645,7 +644,7 @@ impl cce_ui::engine::Application for State {
Some(&mut self.ui_context)
}
- fn new(_qh: &QueueHandle<cce_ui::engine::EngineState<Self>>, _sender: channel::Sender<Self::Message>) -> Self {
+ fn create(_sender: cce_ui::engine::AppSender<Self::Message>) -> Self {
let (auth_sender, auth_receiver) = channel::channel::<AuthEvent>();
// Prepopulate username from last_user file if it exists