aboutsummaryrefslogtreecommitdiff
path: root/src/output.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-01 17:50:49 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-04-01 17:50:49 +0200
commit42d454b26f44b7eea45b46e1b70d3e19e05489f9 (patch)
tree68b6711603ed0af4daa58779943a97fcd15c22fc /src/output.zig
parent5020106b93845c00da083477aa552ad2157c9256 (diff)
downloadriver-42d454b26f44b7eea45b46e1b70d3e19e05489f9.tar.gz
river-42d454b26f44b7eea45b46e1b70d3e19e05489f9.tar.xz
Implement infrastructure for tags
Diffstat (limited to 'src/output.zig')
-rw-r--r--src/output.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output.zig b/src/output.zig
index b324b27..147e890 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -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.