input: log reason for ignoring set_cursor request
This commit is contained in:
parent
e7709f695f
commit
d202712694
1 changed files with 7 additions and 0 deletions
|
|
@ -192,13 +192,20 @@ impl WlPointer {
|
|||
Some(n) => n,
|
||||
_ => {
|
||||
// cannot happen
|
||||
log::warn!("ignoring wl_pointer.set_cursor (1)");
|
||||
return Ok(());
|
||||
}
|
||||
};
|
||||
if pointer_node.node_client_id() != Some(self.seat.client.id) {
|
||||
log::warn!("ignoring wl_pointer.set_cursor (2)");
|
||||
return Ok(());
|
||||
}
|
||||
if req.serial != self.seat.client.last_enter_serial.get() {
|
||||
log::warn!(
|
||||
"ignoring wl_pointer.set_cursor (3) ({} != {})",
|
||||
req.serial,
|
||||
self.seat.client.last_enter_serial.get(),
|
||||
);
|
||||
return Ok(());
|
||||
}
|
||||
self.seat.global.set_app_cursor(cursor_opt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue