From 149dd488a942188e0cfe3de30032e09e66d1bb6c Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 4 Apr 2020 19:48:22 +0200 Subject: [PATCH] Reset focus on switching between tags --- src/root.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/root.zig b/src/root.zig index af1cff8..9700827 100644 --- a/src/root.zig +++ b/src/root.zig @@ -318,6 +318,9 @@ pub const Root = struct { ); self.current_focused_tags = tags; self.pending_focused_tags = null; + + self.focused_view = null; + self.focusNextView(); } var it = ViewStack.iterator(self.views.first, 0xFFFFFFFF);