Implement infrastructure for tags

This commit is contained in:
Isaac Freund
2020-04-01 17:50:49 +02:00
parent 5020106b93
commit 42d454b26f
3 changed files with 159 additions and 73 deletions

View File

@ -84,6 +84,12 @@ pub const Output = struct {
var it = output.root.views.last;
while (it) |node| : (it = node.prev) {
const view = &node.data;
// Only render currently visible views
if (!view.isVisible(output.root.current_focused_tags)) {
continue;
}
// TODO: remove this check and move unmaped views back to unmaped TailQueue
if (!view.mapped) {
// An unmapped view should not be rendered.