1
0
Fork 0
forked from wry/wry

autocommit 2022-04-13 12:58:04 CEST

This commit is contained in:
Julian Orth 2022-04-13 12:58:04 +02:00
parent 8924936079
commit 661a28e5b0
23 changed files with 165 additions and 143 deletions

View file

@ -309,9 +309,11 @@ impl XdgToplevel {
_ => return,
};
let extents = self.xdg.extents.get();
parent
.clone()
.node_child_active_changed(self, self.toplevel_data.active_surfaces.get() > 0);
parent.clone().node_child_active_changed(
self,
self.toplevel_data.active_surfaces.get() > 0,
1,
);
parent.node_child_size_changed(self, extents.width(), extents.height());
parent.node_child_title_changed(self, self.title.borrow_mut().deref());
}
@ -501,7 +503,7 @@ impl ToplevelNode for XdgToplevel {
fn set_active(&self, active: bool) {
if let Some(parent) = self.parent_node.get() {
parent.node_child_active_changed(self, active);
parent.node_child_active_changed(self, active, 1);
}
let changed = {
let mut states = self.states.borrow_mut();

View file

@ -463,7 +463,7 @@ impl ToplevelNode for Xwindow {
fn set_active(&self, active: bool) {
if let Some(pn) = self.parent_node.get() {
pn.node_child_active_changed(self, active);
pn.node_child_active_changed(self, active, 1);
}
}

View file

@ -374,7 +374,7 @@ impl SizedNode for ZwlrLayerSurfaceV1 {
}
fn visit_children(&self, visitor: &mut dyn NodeVisitor) {
self.surface.clone().node_visit(visitor);
self.surface.visit(visitor);
}
fn visible(&self) -> bool {