1
0
Fork 0
forked from wry/wry

layer-shell: implement popups

This commit is contained in:
Julian Orth 2024-05-06 20:41:10 +02:00
parent c6ef63a85f
commit 52afd94f6e
9 changed files with 225 additions and 57 deletions

View file

@ -47,7 +47,7 @@ pub struct XdgPopup {
pub id: XdgPopupId,
node_id: PopupId,
pub xdg: Rc<XdgSurface>,
pub(super) parent: CloneCell<Option<Rc<dyn XdgPopupParent>>>,
pub(in super::super) parent: CloneCell<Option<Rc<dyn XdgPopupParent>>>,
relative_position: Cell<Rect>,
pos: RefCell<XdgPositioned>,
pub tracker: Tracker<Self>,
@ -273,7 +273,7 @@ impl Object for XdgPopup {
}
}
simple_add_obj!(XdgPopup);
dedicated_add_obj!(XdgPopup, XdgPopupId, xdg_popups);
impl Node for XdgPopup {
fn node_id(&self) -> NodeId {