aboutsummaryrefslogtreecommitdiff
path: root/src/view_stack.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/view_stack.zig')
-rw-r--r--src/view_stack.zig2
1 files changed, 1 insertions, 1 deletions
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