diff --git a/river/Cursor.zig b/river/Cursor.zig index 04c0ee3..da1b8d6 100644 --- a/river/Cursor.zig +++ b/river/Cursor.zig @@ -927,6 +927,10 @@ pub fn updateState(self: *Self) void { } fn shouldPassthrough(self: Self) bool { + // We clear focus on hiding the cursor and should not re-focus until the cursor is moved + // and shown again. + if (self.hidden) return false; + switch (self.mode) { .passthrough => { // If we are not currently in down/resize/move mode, we *always* need to passthrough()