diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-13 18:17:49 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-04-13 20:07:37 +0400 |
| commit | 2c873044e8c1150e1dcc9dd97cb232837d6b9312 (patch) | |
| tree | a49ee3edb9b69f5fbd994068ff39953ed3cc0366 /src/layout/tile.rs | |
| parent | 1336a581a622e497e2bdbf46a3763cd7656fa033 (diff) | |
| download | niri-2c873044e8c1150e1dcc9dd97cb232837d6b9312.tar.gz niri-2c873044e8c1150e1dcc9dd97cb232837d6b9312.tar.bz2 niri-2c873044e8c1150e1dcc9dd97cb232837d6b9312.zip | |
Restore view offset upon unfullscreening
Diffstat (limited to 'src/layout/tile.rs')
| -rw-r--r-- | src/layout/tile.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/tile.rs b/src/layout/tile.rs index 8de478c0..e1f9297f 100644 --- a/src/layout/tile.rs +++ b/src/layout/tile.rs @@ -269,6 +269,10 @@ impl<W: LayoutElement> Tile<W> { self.window } + pub fn is_fullscreen(&self) -> bool { + self.is_fullscreen + } + /// Returns `None` if the border is hidden and `Some(width)` if it should be shown. fn effective_border_width(&self) -> Option<i32> { if self.is_fullscreen { |
