shell/elements: Don't render border when maximized

This commit is contained in:
Victoria Brekenfeld 2025-12-15 18:15:16 +01:00 committed by Victoria Brekenfeld
parent a28b11cd5b
commit 4854f8e42d
2 changed files with 4 additions and 4 deletions

View file

@ -763,7 +763,7 @@ impl CosmicStack {
let window_key =
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();
CosmicStackRenderElement::Border(IndicatorShader::element(
renderer,
@ -774,9 +774,9 @@ impl CosmicStack {
a * alpha,
[r, g, b],
))
};
});
std::iter::once(border).chain(
border.into_iter().chain(
windows[active]
.render_elements::<R, WaylandSurfaceRenderElement<R>>(
renderer,

View file

@ -484,7 +484,7 @@ impl CosmicWindow {
geo.size.h += SSD_HEIGHT as f64;
}
if has_ssd || clip {
if (has_ssd || clip) && !is_maximized {
let window_key =
CosmicMappedKey(CosmicMappedKeyInner::Window(Arc::downgrade(&self.0.0)));