diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-04 19:48:22 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-04 19:48:22 +0200 |
| commit | 149dd488a942188e0cfe3de30032e09e66d1bb6c (patch) | |
| tree | 10772798e20bcb694d1d2235bfb22d5c3cd632cf | |
| parent | b30b9ba57e6970d2872c6855ab9c6722123d0cc8 (diff) | |
| download | river-149dd488a942188e0cfe3de30032e09e66d1bb6c.tar.gz river-149dd488a942188e0cfe3de30032e09e66d1bb6c.tar.xz | |
Reset focus on switching between tags
| -rw-r--r-- | src/root.zig | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
