mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add set-column-display action
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user