Cursor: fix warp on output change with no views

This commit is contained in:
Isaac Freund 2023-03-14 12:07:14 +01:00
parent 0ba65848a1
commit 90f240355e
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -327,6 +327,10 @@ pub fn focusOutput(self: *Self, output: ?*Output) void {
var it = self.status_trackers.first; var it = self.status_trackers.first;
while (it) |node| : (it = node.next) node.data.sendOutput(new, .focused); 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 { pub fn handleActivity(self: Self) void {