cursor: add missing maybeResetState() callsite

This function needs to be called whenever pending state is made current,
which includes when views not tracked by the transaction system commit.
This commit is contained in:
Isaac Freund
2021-07-23 18:37:24 +02:00
parent f86291169e
commit 36ce81bb67
3 changed files with 7 additions and 5 deletions

View File

@ -405,11 +405,7 @@ fn commitTransaction(self: *Self) void {
output.damage.addWhole();
}
var seat_it = server.input_manager.seats.first;
while (seat_it) |seat_node| : (seat_it = seat_node.next) {
seat_node.data.cursor.maybeResetState();
}
server.input_manager.maybeResetCursorState();
}
/// Send the new output configuration to all wlr-output-manager clients