1
0
Fork 0
forked from wry/wry

autocommit 2022-02-20 16:13:24 CET

This commit is contained in:
Julian Orth 2022-02-20 16:13:24 +01:00
parent e78cb07df7
commit fbb389b5e9
3 changed files with 6 additions and 1 deletions

View file

@ -317,6 +317,7 @@ impl XdgToplevel {
_ => return,
};
let extents = self.xdg.extents.get();
parent.child_active_changed(self, self.active_surfaces.get() > 0);
parent.child_size_changed(self, extents.width(), extents.height());
parent.child_title_changed(self, self.title.borrow_mut().deref());
}

View file

@ -61,6 +61,7 @@ tree_id!(ContainerNodeId);
pub struct ContainerNode {
pub id: ContainerNodeId,
pub parent: CloneCell<Rc<dyn Node>>,
active: Cell<bool>,
pub split: Cell<ContainerSplit>,
title: RefCell<String>,
pub mono_child: CloneCell<Option<NodeRef<ContainerChild>>>,
@ -154,6 +155,7 @@ impl ContainerNode {
Self {
id: state.node_ids.next(),
parent: CloneCell::new(parent),
active: Cell::new(false),
split: Cell::new(split),
title: Default::default(),
mono_child: CloneCell::new(None),
@ -753,6 +755,7 @@ impl Node for ContainerNode {
}
fn active_changed(&self, active: bool) {
self.active.set(active);
self.parent.get().child_active_changed(self, active);
}
@ -1009,6 +1012,7 @@ impl Node for ContainerNode {
fn set_parent(self: Rc<Self>, parent: Rc<dyn Node>) {
self.parent.set(parent.clone());
parent.child_active_changed(&*self, self.active.get());
parent.child_size_changed(&*self, self.width.get(), self.height.get());
parent
.clone()

View file

@ -1,7 +1,6 @@
# todo
- Container moving (mouse)
- Container moving (kb)
- Float toggle
- Workspaces
- Float moving
@ -11,6 +10,7 @@
# done
- Container moving (kb)
- Container resizing
- clipboard
- primary selection