autocommit 2022-04-08 23:02:38 CEST
This commit is contained in:
parent
0bd9a70e69
commit
21e2216ce5
40 changed files with 587 additions and 255 deletions
|
|
@ -25,7 +25,7 @@ use {
|
|||
},
|
||||
state::State,
|
||||
theme::Color,
|
||||
tree::{ContainerNode, FloatNode, Node, OutputNode, WorkspaceNode},
|
||||
tree::{ContainerNode, FloatNode, OutputNode, WorkspaceNode},
|
||||
utils::rc_eq::rc_eq,
|
||||
},
|
||||
std::{ops::Deref, rc::Rc},
|
||||
|
|
@ -70,23 +70,14 @@ impl Renderer<'_> {
|
|||
self.render_workspace(&ws, x, y + th);
|
||||
}
|
||||
for stacked in self.state.root.stacked.iter() {
|
||||
if let Some(ws) = stacked.get_workspace() {
|
||||
if ws.visible.get() {
|
||||
let pos = stacked.absolute_position();
|
||||
if pos.intersects(&opos) {
|
||||
let (x, y) = opos.translate(pos.x1(), pos.y1());
|
||||
stacked.render(self, x, y);
|
||||
}
|
||||
if stacked.visible() {
|
||||
let pos = stacked.absolute_position();
|
||||
if pos.intersects(&opos) {
|
||||
let (x, y) = opos.translate(pos.x1(), pos.y1());
|
||||
stacked.render(self, x, y);
|
||||
}
|
||||
}
|
||||
}
|
||||
for stacked in self.state.root.xstacked.iter() {
|
||||
let pos = stacked.absolute_position();
|
||||
if pos.intersects(&opos) {
|
||||
let (x, y) = opos.translate(pos.x1(), pos.y1());
|
||||
stacked.render(self, x, y);
|
||||
}
|
||||
}
|
||||
render_layer!(output.layers[2]);
|
||||
render_layer!(output.layers[3]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue