Reset focus on switching between tags

This commit is contained in:
Isaac Freund 2020-04-04 19:48:22 +02:00
parent b30b9ba57e
commit 149dd488a9
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

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