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

@ -178,6 +178,11 @@ pub fn inputAllowed(self: Self, wlr_surface: *wlr.Surface) bool {
true;
}
pub fn maybeResetCursorState(self: Self) void {
var it = self.seats.first;
while (it) |node| : (it = node.next) node.data.cursor.maybeResetState();
}
fn handleInhibitActivate(
listener: *wl.Listener(*wlr.InputInhibitManager),
input_inhibit_manager: *wlr.InputInhibitManager,