diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-11 09:33:23 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-11 09:33:23 +0400 |
| commit | 1c14a0a2a97867878c65ea33fa8b927618efb555 (patch) | |
| tree | 16bb26bf1d8b83fca5d768bce7577443e26584e5 /src/layout/monitor.rs | |
| parent | 2fd9a03bd71b4709659cdd35192109b47c3b0e10 (diff) | |
| download | niri-1c14a0a2a97867878c65ea33fa8b927618efb555.tar.gz niri-1c14a0a2a97867878c65ea33fa8b927618efb555.tar.bz2 niri-1c14a0a2a97867878c65ea33fa8b927618efb555.zip | |
Add a reset-window-height action
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 3833a61a..e12d544a 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -614,6 +614,10 @@ impl<W: LayoutElement> Monitor<W> { self.active_workspace().set_window_height(change); } + pub fn reset_window_height(&mut self) { + self.active_workspace().reset_window_height(); + } + pub fn move_workspace_down(&mut self) { let new_idx = min(self.active_workspace_idx + 1, self.workspaces.len() - 1); if new_idx == self.active_workspace_idx { |
