1
0
Fork 0
forked from wry/wry

tree: clean up object attachment

This commit is contained in:
Julian Orth 2024-02-21 19:38:31 +01:00
parent ed129c1c3d
commit fe804b8276
8 changed files with 140 additions and 115 deletions

View file

@ -379,7 +379,7 @@ impl ToplevelNodeBase for Xwindow {
Some(self.x.surface.clone())
}
fn tl_set_workspace_ext(self: Rc<Self>, ws: &Rc<WorkspaceNode>) {
fn tl_set_workspace_ext(&self, ws: &Rc<WorkspaceNode>) {
self.x.surface.set_output(&ws.output.get());
}

View file

@ -477,7 +477,7 @@ impl ToplevelNodeBase for XdgToplevel {
Some(self.xdg.surface.clone())
}
fn tl_set_workspace_ext(self: Rc<Self>, ws: &Rc<WorkspaceNode>) {
fn tl_set_workspace_ext(&self, ws: &Rc<WorkspaceNode>) {
self.xdg.set_workspace(ws);
}