aboutsummaryrefslogtreecommitdiff
path: root/river/Cursor.zig
diff options
context:
space:
mode:
Diffstat (limited to 'river/Cursor.zig')
-rw-r--r--river/Cursor.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/river/Cursor.zig b/river/Cursor.zig
index 06fd452..0fca04a 100644
--- a/river/Cursor.zig
+++ b/river/Cursor.zig
@@ -826,9 +826,11 @@ fn passthrough(self: *Self, time: u32) void {
if (follow_mode == .strict or (follow_mode == .normal and focus_change)) {
switch (result.parent) {
.view => |view| {
- self.seat.focusOutput(view.output);
- self.seat.focus(view);
- server.root.startTransaction();
+ if (self.seat.focused != .view or self.seat.focused.view != view) {
+ self.seat.focusOutput(view.output);
+ self.seat.focus(view);
+ server.root.startTransaction();
+ }
},
.layer_surface => {},
}