tiling: Also render resize indicators without active hint
This commit is contained in:
parent
235248d445
commit
0ebcfa24a3
1 changed files with 35 additions and 36 deletions
|
|
@ -2557,6 +2557,22 @@ where
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
indicator = Some(IndicatorShader::focus_element(
|
||||||
|
renderer,
|
||||||
|
match data {
|
||||||
|
Data::Mapped { mapped, .. } => mapped.clone().into(),
|
||||||
|
Data::Group { alive, .. } => Key::Group(Arc::downgrade(alive)),
|
||||||
|
},
|
||||||
|
geo,
|
||||||
|
if data.is_group() {
|
||||||
|
4
|
||||||
|
} else {
|
||||||
|
indicator_thickness
|
||||||
|
},
|
||||||
|
1.0,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
if let Some((mode, resize)) = resize_indicator.as_mut() {
|
if let Some((mode, resize)) = resize_indicator.as_mut() {
|
||||||
let mut geo = geo.clone();
|
let mut geo = geo.clone();
|
||||||
geo.loc -= (18, 18).into();
|
geo.loc -= (18, 18).into();
|
||||||
|
|
@ -2564,8 +2580,7 @@ where
|
||||||
|
|
||||||
resize.resize(geo.size);
|
resize.resize(geo.size);
|
||||||
resize.output_enter(output, output_geo);
|
resize.output_enter(output, output_geo);
|
||||||
let possible_edges =
|
let possible_edges = TilingLayout::possible_resizes(target_tree, node_id);
|
||||||
TilingLayout::possible_resizes(target_tree, node_id);
|
|
||||||
if !possible_edges.is_empty() {
|
if !possible_edges.is_empty() {
|
||||||
if resize.with_program(|internal| {
|
if resize.with_program(|internal| {
|
||||||
let mut edges = internal.edges.lock().unwrap();
|
let mut edges = internal.edges.lock().unwrap();
|
||||||
|
|
@ -2592,22 +2607,6 @@ where
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
indicator = Some(IndicatorShader::focus_element(
|
|
||||||
renderer,
|
|
||||||
match data {
|
|
||||||
Data::Mapped { mapped, .. } => mapped.clone().into(),
|
|
||||||
Data::Group { alive, .. } => Key::Group(Arc::downgrade(alive)),
|
|
||||||
},
|
|
||||||
geo,
|
|
||||||
if data.is_group() {
|
|
||||||
4
|
|
||||||
} else {
|
|
||||||
indicator_thickness
|
|
||||||
},
|
|
||||||
1.0,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Data::Mapped { mapped, .. } = data {
|
if let Data::Mapped { mapped, .. } = data {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue