From 633f4e27330f17f5784eb964752bc6b19dddbe08 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Fri, 3 Oct 2025 11:28:01 +0200 Subject: [PATCH] river: remove dead code --- river/command/view_operations.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/river/command/view_operations.zig b/river/command/view_operations.zig index 4f1319b..82e2516 100644 --- a/river/command/view_operations.zig +++ b/river/command/view_operations.zig @@ -79,12 +79,6 @@ fn getTarget(seat: *Seat, direction_str: []const u8, target_mode: TargetMode) !? if (target_mode == .skip_float and seat.focused.view.pending.float) return null; const output = seat.focused_output orelse return null; - // If no currently view is focused, focus the first in the stack. - if (seat.focused != .view) { - var it = output.pending.wm_stack.iterator(.forward); - return it.next(); - } - // Logical direction, based on the view stack. if (std.meta.stringToEnum(Direction, direction_str)) |direction| { switch (direction) {