tree: add Node::node_make_visible
This commit is contained in:
parent
289c201a69
commit
4bfa9fb7fc
15 changed files with 147 additions and 34 deletions
|
|
@ -610,6 +610,10 @@ impl Node for XdgToplevel {
|
|||
Some(self)
|
||||
}
|
||||
|
||||
fn node_make_visible(self: Rc<Self>) {
|
||||
self.toplevel_data.make_visible(&*self)
|
||||
}
|
||||
|
||||
fn node_on_pointer_enter(self: Rc<Self>, seat: &Rc<WlSeatGlobal>, _x: Fixed, _y: Fixed) {
|
||||
seat.enter_toplevel(self.clone());
|
||||
}
|
||||
|
|
@ -780,6 +784,10 @@ impl XdgSurfaceExt for XdgToplevel {
|
|||
.state
|
||||
.damage(self.node_absolute_position());
|
||||
}
|
||||
|
||||
fn make_visible(self: Rc<Self>) {
|
||||
self.node_make_visible();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue