1
0
Fork 0
forked from wry/wry

xwayland: respect input region

This commit is contained in:
Julian Orth 2024-10-11 14:21:18 +02:00
parent 5df018046c
commit 2b55278420

View file

@ -347,12 +347,7 @@ impl Node for Xwindow {
} }
let rect = self.x.surface.buffer_abs_pos.get(); let rect = self.x.surface.buffer_abs_pos.get();
if x < rect.width() && y < rect.height() { if x < rect.width() && y < rect.height() {
tree.push(FoundNode { return self.x.surface.find_tree_at_(x, y, tree);
node: self.x.surface.clone(),
x,
y,
});
return FindTreeResult::AcceptsInput;
} }
FindTreeResult::Other FindTreeResult::Other
} }