From 6b8a7e1dd14bcd24b70cfced6976aed64afae194 Mon Sep 17 00:00:00 2001 From: Max Bretschneider Date: Fri, 24 Oct 2025 15:32:43 +0200 Subject: [PATCH] Replaced direction switch, direclty handling next and previous now --- src/Surface.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Surface.zig b/src/Surface.zig index 69a390c2d..4ff25992a 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -5394,10 +5394,8 @@ pub fn performBindingAction(self: *Surface, action: input.Binding.Action) !bool .{ .surface = self }, .goto_window, switch (direction) { - inline else => |tag| @field( - apprt.action.GotoWindow, - @tagName(tag), - ), + .next => apprt.action.GotoWindow.next, + .previous => apprt.action.GotoWindow.previous, }, ),