compositor-example: fix errors outside of macros
@@ -38,7 +38,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
if let Some(stream) = listener.accept().unwrap() {
println!("Got a client: {:?}", stream);
- let client = display.insert_client(stream, Arc::new(ClientState)).unwrap();
+ let client = display
+ .handle()
+ .insert_client(stream, Arc::new(ClientState))
+ .unwrap();
clients.push(client);
}
@@ -48,7 +51,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
struct ClientState;
-impl ClientData<App> for ClientState {
+impl ClientData for ClientState {
fn initialized(&self, _client_id: ClientId) {
println!("initialized");
}
