1
0
Fork 0
forked from wry/wry

tree: add Node::node_make_visible

This commit is contained in:
Julian Orth 2025-07-18 20:01:27 +02:00
parent 289c201a69
commit 4bfa9fb7fc
15 changed files with 147 additions and 34 deletions

View file

@ -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 {