aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-03-14 12:07:14 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-03-14 12:07:14 +0100
commit90f240355e1f8316167674219cec2326c9934b37 (patch)
tree1461f297e1f528177a11a9b5403655f7a6d71cc6
parent0ba65848a1b4d2b4f40ba35def68a537011b311f (diff)
downloadriver-90f240355e1f8316167674219cec2326c9934b37.tar.gz
river-90f240355e1f8316167674219cec2326c9934b37.tar.xz
Cursor: fix warp on output change with no views
-rw-r--r--river/Seat.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/river/Seat.zig b/river/Seat.zig
index 5b5075f..ef561b1 100644
--- a/river/Seat.zig
+++ b/river/Seat.zig
@@ -327,6 +327,10 @@ pub fn focusOutput(self: *Self, output: ?*Output) void {
var it = self.status_trackers.first;
while (it) |node| : (it = node.next) node.data.sendOutput(new, .focused);
}
+
+ // Depending on configuration and cursor position, changing output focus
+ // may cause the cursor to be warped.
+ self.cursor.may_need_warp = true;
}
pub fn handleActivity(self: Self) void {