fix(wayland/cursor): things
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user