tree: add Node::node_make_visible
This commit is contained in:
parent
289c201a69
commit
4bfa9fb7fc
15 changed files with 147 additions and 34 deletions
|
|
@ -146,6 +146,12 @@ impl XdgPopupParent for Popup {
|
|||
self.parent.surface.visible.get()
|
||||
}
|
||||
|
||||
fn make_visible(self: Rc<Self>) {
|
||||
if let Some(ext) = self.parent.ext.get() {
|
||||
ext.make_visible();
|
||||
}
|
||||
}
|
||||
|
||||
fn tray_item(&self) -> Option<TrayItemId> {
|
||||
self.parent.clone().tray_item()
|
||||
}
|
||||
|
|
@ -193,6 +199,8 @@ pub trait XdgSurfaceExt: Debug {
|
|||
fn tray_item(&self) -> Option<TrayItemId> {
|
||||
None
|
||||
}
|
||||
|
||||
fn make_visible(self: Rc<Self>);
|
||||
}
|
||||
|
||||
impl XdgSurface {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue