autocommit 2022-02-20 16:13:24 CET
This commit is contained in:
parent
e78cb07df7
commit
fbb389b5e9
3 changed files with 6 additions and 1 deletions
|
|
@ -317,6 +317,7 @@ impl XdgToplevel {
|
||||||
_ => return,
|
_ => return,
|
||||||
};
|
};
|
||||||
let extents = self.xdg.extents.get();
|
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_size_changed(self, extents.width(), extents.height());
|
||||||
parent.child_title_changed(self, self.title.borrow_mut().deref());
|
parent.child_title_changed(self, self.title.borrow_mut().deref());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,7 @@ tree_id!(ContainerNodeId);
|
||||||
pub struct ContainerNode {
|
pub struct ContainerNode {
|
||||||
pub id: ContainerNodeId,
|
pub id: ContainerNodeId,
|
||||||
pub parent: CloneCell<Rc<dyn Node>>,
|
pub parent: CloneCell<Rc<dyn Node>>,
|
||||||
|
active: Cell<bool>,
|
||||||
pub split: Cell<ContainerSplit>,
|
pub split: Cell<ContainerSplit>,
|
||||||
title: RefCell<String>,
|
title: RefCell<String>,
|
||||||
pub mono_child: CloneCell<Option<NodeRef<ContainerChild>>>,
|
pub mono_child: CloneCell<Option<NodeRef<ContainerChild>>>,
|
||||||
|
|
@ -154,6 +155,7 @@ impl ContainerNode {
|
||||||
Self {
|
Self {
|
||||||
id: state.node_ids.next(),
|
id: state.node_ids.next(),
|
||||||
parent: CloneCell::new(parent),
|
parent: CloneCell::new(parent),
|
||||||
|
active: Cell::new(false),
|
||||||
split: Cell::new(split),
|
split: Cell::new(split),
|
||||||
title: Default::default(),
|
title: Default::default(),
|
||||||
mono_child: CloneCell::new(None),
|
mono_child: CloneCell::new(None),
|
||||||
|
|
@ -753,6 +755,7 @@ impl Node for ContainerNode {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn active_changed(&self, active: bool) {
|
fn active_changed(&self, active: bool) {
|
||||||
|
self.active.set(active);
|
||||||
self.parent.get().child_active_changed(self, 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>) {
|
fn set_parent(self: Rc<Self>, parent: Rc<dyn Node>) {
|
||||||
self.parent.set(parent.clone());
|
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.child_size_changed(&*self, self.width.get(), self.height.get());
|
||||||
parent
|
parent
|
||||||
.clone()
|
.clone()
|
||||||
|
|
|
||||||
2
todo.md
2
todo.md
|
|
@ -1,7 +1,6 @@
|
||||||
# todo
|
# todo
|
||||||
|
|
||||||
- Container moving (mouse)
|
- Container moving (mouse)
|
||||||
- Container moving (kb)
|
|
||||||
- Float toggle
|
- Float toggle
|
||||||
- Workspaces
|
- Workspaces
|
||||||
- Float moving
|
- Float moving
|
||||||
|
|
@ -11,6 +10,7 @@
|
||||||
|
|
||||||
# done
|
# done
|
||||||
|
|
||||||
|
- Container moving (kb)
|
||||||
- Container resizing
|
- Container resizing
|
||||||
- clipboard
|
- clipboard
|
||||||
- primary selection
|
- primary selection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue