From c16628c7f57c51d50f2d10a96c265fb0afaddb02 Mon Sep 17 00:00:00 2001 From: Leon Henrik Plickat Date: Tue, 11 Jul 2023 01:11:40 +0200 Subject: [PATCH] river: fix spatial direction focusing / swapping --- river/command/view_operations.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/river/command/view_operations.zig b/river/command/view_operations.zig index db2af3a..0e8b092 100644 --- a/river/command/view_operations.zig +++ b/river/command/view_operations.zig @@ -115,6 +115,7 @@ fn getTarget(seat: *Seat, direction_str: []const u8, target_mode: TargetMode) !? var target_distance: usize = std.math.maxInt(usize); var it = output.pending.wm_stack.iterator(.forward); while (it.next()) |view| { + if (output.pending.tags & view.pending.tags == 0) continue; if (target_mode == .skip_float and view.pending.float) continue; if (view == seat.focused.view) continue; const view_position = Vector.positionOfBox(view.current.box);