From 454e2454b68841a90cb321b672adaeac8d10ed87 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 25 Apr 2020 21:40:26 +0200 Subject: Separate View from its implementation This is done in preperation for Xwayland support --- src/view_stack.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/view_stack.zig') diff --git a/src/view_stack.zig b/src/view_stack.zig index 2c9227f..c08db03 100644 --- a/src/view_stack.zig +++ b/src/view_stack.zig @@ -75,7 +75,7 @@ pub fn ViewStack(comptime T: type) type { /// This function is horribly ugly, but it's well tested below. pub fn next(self: *Iterator) ?*Node { while (self.it) |node| : (self.it = if (self.reverse) node.prev else node.next) { - if (node.view.mapped and if (self.pending) + if (node.view.wlr_surface != null and if (self.pending) if (node.view.pending_tags) |pending_tags| self.tags & pending_tags != 0 else -- cgit v1.2.3