aboutsummaryrefslogtreecommitdiff
path: root/niri-visual-tests/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-25 08:53:16 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-25 02:00:18 -0700
commit9571d149b2cecd3df8ba3f90f0af296e9f69af6e (patch)
tree185e7a30f094f5e0eb42400e7709e233e86c9bff /niri-visual-tests/src
parent99358e36b38c1aa5cc0c0fb36a91ae7cb4a2e3ba (diff)
downloadniri-9571d149b2cecd3df8ba3f90f0af296e9f69af6e.tar.gz
niri-9571d149b2cecd3df8ba3f90f0af296e9f69af6e.tar.bz2
niri-9571d149b2cecd3df8ba3f90f0af296e9f69af6e.zip
Render workspaces separately with gaps between
This design makes more sense spatially, and is required for the Overview. Gaps also make it clear how clipping windows to workspace bounds works. Background and bottom layer-shell surfaces get duplicated for each workspace, while top and overlay stay "on top".
Diffstat (limited to 'niri-visual-tests/src')
-rw-r--r--niri-visual-tests/src/cases/layout.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/niri-visual-tests/src/cases/layout.rs b/niri-visual-tests/src/cases/layout.rs
index 23f2bc8d..81748e8c 100644
--- a/niri-visual-tests/src/cases/layout.rs
+++ b/niri-visual-tests/src/cases/layout.rs
@@ -266,6 +266,7 @@ impl TestCase for Layout {
.monitor_for_output(&self.output)
.unwrap()
.render_elements(renderer, RenderTarget::Output, true)
+ .flat_map(|(_, iter)| iter)
.map(|elem| Box::new(elem) as _)
.collect()
}