Implement niri msg workspaces

This commit is contained in:
rustysec
2024-05-16 14:30:52 -07:00
committed by Ivan Molodetskikh
parent a2f74c9bff
commit 36d3e70f11
6 changed files with 122 additions and 0 deletions
+5
View File
@@ -12,6 +12,7 @@ use _server_decoration::server::org_kde_kwin_server_decoration_manager::Mode as
use anyhow::{ensure, Context};
use calloop::futures::Scheduler;
use niri_config::{Config, Key, Modifiers, PreviewRender, TrackLayout, WorkspaceReference};
use niri_ipc::Workspace;
use smithay::backend::allocator::Fourcc;
use smithay::backend::renderer::damage::OutputDamageTracker;
use smithay::backend::renderer::element::memory::MemoryRenderBufferRenderElement;
@@ -3934,6 +3935,10 @@ impl Niri {
self.queue_redraw_all();
}
}
pub fn ipc_workspaces(&self) -> Vec<Workspace> {
self.layout.ipc_workspaces()
}
}
pub struct ClientState {