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

@@ -9,9 +9,10 @@ use std::sync::Arc;
use waynest::ObjectId;
use waynest_protocols::server::stable::xdg_shell::xdg_popup::XdgPopup;
pub use waynest_protocols::server::stable::xdg_shell::xdg_surface::*;
use waynest_server::Client as _;
#[derive(Debug, waynest_server::RequestDispatcher)]
#[waynest(error = crate::wayland::WaylandError)]
#[waynest(error = crate::wayland::WaylandError, connection = crate::wayland::Client)]
pub struct Surface {
id: ObjectId,
version: u32,
@@ -65,7 +66,7 @@ impl XdgSurface for Surface {
self.wl_surface.clone(),
client.get::<Self>(sender_id).unwrap(),
),
);
)?;
self.wl_surface
.try_set_role(SurfaceRole::XdgToplevel, Error::AlreadyConstructed)
@@ -139,7 +140,7 @@ impl XdgSurface for Surface {
let popup = client.insert(
popup_id,
Popup::new(self.version, surface, &positioner, popup_id),
);
)?;
let positioner_geometry = positioner.data().infinite_geometry();