tree: add Node::node_make_visible
This commit is contained in:
parent
289c201a69
commit
4bfa9fb7fc
15 changed files with 147 additions and 34 deletions
|
|
@ -752,6 +752,13 @@ impl Node for FloatNode {
|
|||
renderer.render_floating(self, x, y)
|
||||
}
|
||||
|
||||
fn node_make_visible(self: Rc<Self>) {
|
||||
if self.visible.get() {
|
||||
return;
|
||||
}
|
||||
self.workspace.get().cnode_make_visible(&*self);
|
||||
}
|
||||
|
||||
fn node_on_button(
|
||||
self: Rc<Self>,
|
||||
seat: &Rc<WlSeatGlobal>,
|
||||
|
|
@ -904,6 +911,10 @@ impl ContainingNode for FloatNode {
|
|||
self.workspace.get()
|
||||
}
|
||||
|
||||
fn cnode_make_visible(self: Rc<Self>, _child: &dyn Node) {
|
||||
self.node_make_visible();
|
||||
}
|
||||
|
||||
fn cnode_set_child_position(self: Rc<Self>, _child: &dyn Node, x: i32, y: i32) {
|
||||
let theme = &self.state.theme;
|
||||
let th = theme.sizes.title_height.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue