chore(wayland): update waynest

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-09-30 22:32:09 +02:00
parent 2d6bc06cbe
commit 0ebfc1153e
29 changed files with 204 additions and 99 deletions

View File

@@ -10,6 +10,7 @@ use crate::wayland::{
registry::Registry,
};
use global_counter::primitive::exact::CounterU32;
use waynest_server::Client as _;
use std::{
sync::{Arc, OnceLock},
time::Instant,
@@ -18,7 +19,7 @@ use waynest::ObjectId;
pub use waynest_protocols::server::core::wayland::wl_display::*;
#[derive(waynest_server::RequestDispatcher)]
#[waynest(error = crate::wayland::WaylandError)]
#[waynest(error = crate::wayland::WaylandError, connection = crate::wayland::Client)]
pub struct Display {
pub message_sink: MessageSink,
pub pid: Option<i32>,
@@ -69,7 +70,7 @@ impl WlDisplay for Display {
_sender_id: ObjectId,
registry_id: ObjectId,
) -> WaylandResult<()> {
let registry = client.insert(registry_id, Registry);
let registry = client.insert(registry_id, Registry)?;
registry.advertise_globals(client, registry_id).await?;