diff --git a/src/wayland/core/pointer.rs b/src/wayland/core/pointer.rs index 525a902..3474289 100644 --- a/src/wayland/core/pointer.rs +++ b/src/wayland/core/pointer.rs @@ -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(), } })); diff --git a/src/wayland/core/seat.rs b/src/wayland/core/seat.rs index 1d2d2c6..dae74fc 100644 --- a/src/wayland/core/seat.rs +++ b/src/wayland/core/seat.rs @@ -156,10 +156,7 @@ impl Seat { } pub async fn cursor_surface(&self) -> Option> { - let Some(pointer) = self.pointer.get() else { - return None; - }; - pointer.cursor_surface().await + self.pointer.get()?.cursor_surface().await } } impl WlSeat for Seat {