1
0
Fork 0
forked from wry/wry

seat: update hardware cursor upon identical re-attach

This happens if the client re-uses the same wl_surface in
wl_pointer::set_cursor. If, in the same call, the client changes the
hotspot, we have to re-render the hardware cursor.
This commit is contained in:
Julian Orth 2022-12-16 21:50:35 +01:00
parent 09b4668a53
commit 2db0ee8995

View file

@ -800,6 +800,7 @@ impl WlSeatGlobal {
if let Some(old) = self.cursor.get() {
if let Some(new) = cursor.as_ref() {
if rc_eq(&old, new) {
self.update_hardware_cursor();
return;
}
}