fix(wayland/cursor): things

This commit is contained in:
Nova
2025-09-09 14:55:56 -07:00
parent 550087841f
commit 45ec292b99
2 changed files with 2 additions and 5 deletions

View File

@@ -197,7 +197,7 @@ impl WlPointer for Pointer {
.map(|b| b.buffer.size())
.unwrap_or([16; 2].into());
Geometry {
origin: [-hotspot_x, -hotspot_y].into(),
origin: [hotspot_x, hotspot_y].into(),
size: [size.x as u32, size.y as u32].into(),
}
}));

View File

@@ -156,10 +156,7 @@ impl Seat {
}
pub async fn cursor_surface(&self) -> Option<Arc<Surface>> {
let Some(pointer) = self.pointer.get() else {
return None;
};
pointer.cursor_surface().await
self.pointer.get()?.cursor_surface().await
}
}
impl WlSeat for Seat {