river: fix spatial direction focusing / swapping

This commit is contained in:
Leon Henrik Plickat 2023-07-11 01:11:40 +02:00
parent b35d779122
commit c16628c7f5

View File

@ -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);