From 6be85847a60a9a9ac43a35ea2dddcb6708c7f69d Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Wed, 29 Jun 2022 21:41:37 +0200 Subject: [PATCH] tree: ignore hidden stacked windows --- src/tree/output.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tree/output.rs b/src/tree/output.rs index f18fe2f5..6bcbcd88 100644 --- a/src/tree/output.rs +++ b/src/tree/output.rs @@ -499,6 +499,9 @@ impl Node for OutputNode { let (x_abs, y_abs) = self.global.pos.get().translate_inv(x, y); for stacked in self.state.root.stacked.rev_iter() { let ext = stacked.node_absolute_position(); + if !stacked.node_visible() { + continue; + } if stacked.stacked_absolute_position_constrains_input() && !ext.contains(x_abs, y_abs) {