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:
parent
09b4668a53
commit
2db0ee8995
1 changed files with 1 additions and 0 deletions
|
|
@ -800,6 +800,7 @@ impl WlSeatGlobal {
|
||||||
if let Some(old) = self.cursor.get() {
|
if let Some(old) = self.cursor.get() {
|
||||||
if let Some(new) = cursor.as_ref() {
|
if let Some(new) = cursor.as_ref() {
|
||||||
if rc_eq(&old, new) {
|
if rc_eq(&old, new) {
|
||||||
|
self.update_hardware_cursor();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue