shell/elements: Don't render border when maximized
This commit is contained in:
parent
a28b11cd5b
commit
4854f8e42d
2 changed files with 4 additions and 4 deletions
|
|
@ -763,7 +763,7 @@ impl CosmicStack {
|
||||||
let window_key =
|
let window_key =
|
||||||
CosmicMappedKey(CosmicMappedKeyInner::Stack(Arc::downgrade(&self.0.0)));
|
CosmicMappedKey(CosmicMappedKeyInner::Stack(Arc::downgrade(&self.0.0)));
|
||||||
|
|
||||||
let border = {
|
let border = (!maximized).then(|| {
|
||||||
let (r, g, b, a) = theme.cosmic().bg_divider().into_components();
|
let (r, g, b, a) = theme.cosmic().bg_divider().into_components();
|
||||||
CosmicStackRenderElement::Border(IndicatorShader::element(
|
CosmicStackRenderElement::Border(IndicatorShader::element(
|
||||||
renderer,
|
renderer,
|
||||||
|
|
@ -774,9 +774,9 @@ impl CosmicStack {
|
||||||
a * alpha,
|
a * alpha,
|
||||||
[r, g, b],
|
[r, g, b],
|
||||||
))
|
))
|
||||||
};
|
});
|
||||||
|
|
||||||
std::iter::once(border).chain(
|
border.into_iter().chain(
|
||||||
windows[active]
|
windows[active]
|
||||||
.render_elements::<R, WaylandSurfaceRenderElement<R>>(
|
.render_elements::<R, WaylandSurfaceRenderElement<R>>(
|
||||||
renderer,
|
renderer,
|
||||||
|
|
|
||||||
|
|
@ -484,7 +484,7 @@ impl CosmicWindow {
|
||||||
geo.size.h += SSD_HEIGHT as f64;
|
geo.size.h += SSD_HEIGHT as f64;
|
||||||
}
|
}
|
||||||
|
|
||||||
if has_ssd || clip {
|
if (has_ssd || clip) && !is_maximized {
|
||||||
let window_key =
|
let window_key =
|
||||||
CosmicMappedKey(CosmicMappedKeyInner::Window(Arc::downgrade(&self.0.0)));
|
CosmicMappedKey(CosmicMappedKeyInner::Window(Arc::downgrade(&self.0.0)));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue