diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 08:53:16 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 02:00:18 -0700 |
| commit | 9571d149b2cecd3df8ba3f90f0af296e9f69af6e (patch) | |
| tree | 185e7a30f094f5e0eb42400e7709e233e86c9bff /src/layout/mod.rs | |
| parent | 99358e36b38c1aa5cc0c0fb36a91ae7cb4a2e3ba (diff) | |
| download | niri-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 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 040a5cb4..cdb96113 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -2279,7 +2279,7 @@ impl<W: LayoutElement> Layout<W> { ) -> Option<(&W, HitType)> { if let Some(InteractiveMoveState::Moving(move_)) = &self.interactive_move { if move_.output == *output { - let tile_pos = move_.tile_render_location(1.); + let tile_pos = move_.tile_render_location(); HitType::hit_tile(&move_.tile, tile_pos, pos_within_output) } else { None |
