1
0
Fork 0
forked from wry/wry

autocommit 2022-04-20 14:58:34 CEST

This commit is contained in:
Julian Orth 2022-04-20 14:58:34 +02:00
parent c1773c0fee
commit fa1ec0b36c
22 changed files with 583 additions and 185 deletions

View file

@ -776,9 +776,9 @@ impl SizedNode for WlSurface {
pn.node_replace_child(tl.as_node(), cn);
}
fn close(&self) {
fn close(self: &Rc<Self>) {
if let Some(tl) = self.toplevel.get() {
tl.close();
tl.into_node().node_close();
}
}
@ -838,9 +838,9 @@ impl SizedNode for WlSurface {
}
}
fn toggle_floating(self: &Rc<Self>, _seat: &Rc<WlSeatGlobal>) {
fn toggle_floating(self: &Rc<Self>, seat: &Rc<WlSeatGlobal>) {
if let Some(tl) = self.toplevel.get() {
tl.toggle_floating();
tl.into_node().node_toggle_floating(seat);
}
}