1
0
Fork 0
forked from wry/wry

tree: add Node::node_output

This commit is contained in:
Julian Orth 2025-04-26 21:49:09 +02:00
parent 0dcb33ae38
commit b83bf0657b
15 changed files with 65 additions and 7 deletions

View file

@ -1343,6 +1343,10 @@ impl Node for OutputNode {
self.global.pos.get()
}
fn node_output(&self) -> Option<Rc<OutputNode>> {
self.global.opt.node()
}
fn node_do_focus(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, direction: Direction) {
if self.state.lock.locked.get() {
if let Some(lock) = self.lock_surface.get() {