diff options
| author | Duncan Overbruck <mail@duncano.de> | 2025-03-13 03:09:06 +0100 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-03-14 12:57:33 -0700 |
| commit | f6aa8c17937fadd1da3c8f2f080ea402ae17da87 (patch) | |
| tree | 8a4ca8f238c98a238e86b8c5331e33e414547601 /src/layout/mod.rs | |
| parent | a5d58d670bde166ff8bca8a83bb6f1136c7fa67b (diff) | |
| download | niri-f6aa8c17937fadd1da3c8f2f080ea402ae17da87.tar.gz niri-f6aa8c17937fadd1da3c8f2f080ea402ae17da87.tar.bz2 niri-f6aa8c17937fadd1da3c8f2f080ea402ae17da87.zip | |
Add move-column-to-index action
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 11469551..67963f2e 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1830,6 +1830,13 @@ impl<W: LayoutElement> Layout<W> { true } + pub fn move_column_to_index(&mut self, index: usize) { + let Some(workspace) = self.active_workspace_mut() else { + return; + }; + workspace.move_column_to_index(index); + } + pub fn move_down(&mut self) { let Some(workspace) = self.active_workspace_mut() else { return; |
