diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-28 11:40:16 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | 6c52077d922dce3a9b57c6785647b6befb700ac9 (patch) | |
| tree | edc2edb081630600c95e9356be9e43d5a2eea240 /src/layout/scrolling.rs | |
| parent | 73bf7b1730e6911adb09d8253035f4510d83dbe0 (diff) | |
| download | niri-6c52077d922dce3a9b57c6785647b6befb700ac9.tar.gz niri-6c52077d922dce3a9b57c6785647b6befb700ac9.tar.bz2 niri-6c52077d922dce3a9b57c6785647b6befb700ac9.zip | |
Add move-floating-window action
Diffstat (limited to 'src/layout/scrolling.rs')
| -rw-r--r-- | src/layout/scrolling.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index c0de770a..1a8c8f5f 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -373,6 +373,15 @@ impl<W: LayoutElement> ScrollingSpace<W> { Some(col.tiles[col.active_tile_idx].window()) } + pub fn active_tile_mut(&mut self) -> Option<&mut Tile<W>> { + if self.columns.is_empty() { + return None; + } + + let col = &mut self.columns[self.active_column_idx]; + Some(&mut col.tiles[col.active_tile_idx]) + } + pub fn is_active_fullscreen(&self) -> bool { if self.columns.is_empty() { return false; |
