1
0
Fork 0
forked from wry/wry

autocommit 2022-04-20 20:20:36 CEST

This commit is contained in:
Julian Orth 2022-04-20 20:20:36 +02:00
parent 34e665cd8b
commit dae9e52347
8 changed files with 22 additions and 13 deletions

View file

@ -342,15 +342,14 @@ impl SizedNode for OutputNode {
return fs.as_node().node_find_tree_at(x, y, tree);
}
}
let (x_abs, y_abs) = self.global.pos.get().translate_inv(x, y);
{
if self.find_layer_surface_at(x_abs, y_abs, &[OVERLAY, TOP], tree)
== FindTreeResult::AcceptsInput
{
return FindTreeResult::AcceptsInput;
let res = self.find_layer_surface_at(x, y, &[OVERLAY, TOP], tree);
if res.accepts_input() {
return res;
}
}
{
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_absolute_position_constrains_input() && !ext.contains(x_abs, y_abs)