Add set-column-display action

This commit is contained in:
Ivan Molodetskikh
2025-02-06 08:42:09 +03:00
parent 90f24da631
commit 8f9e0d029c
8 changed files with 65 additions and 8 deletions
+5 -1
View File
@@ -2,7 +2,7 @@ use std::cmp::min;
use std::rc::Rc;
use std::time::Duration;
use niri_ipc::SizeChange;
use niri_ipc::{ColumnDisplay, SizeChange};
use smithay::backend::renderer::element::utils::{
CropRenderElement, Relocate, RelocateRenderElement,
};
@@ -736,6 +736,10 @@ impl<W: LayoutElement> Monitor<W> {
self.active_workspace().toggle_column_tabbed_display();
}
pub fn set_column_display(&mut self, display: ColumnDisplay) {
self.active_workspace().set_column_display(display);
}
pub fn center_column(&mut self) {
self.active_workspace().center_column();
}