Use cosmic-config for dynamic workspace settings
`WorkspaceAmount`, `WorkspaceMode`, and `WorkspaceLayout` can all be changed dynamically now.
This commit is contained in:
parent
25f5edd6cf
commit
81efd42dd5
9 changed files with 88 additions and 51 deletions
|
|
@ -70,6 +70,7 @@ pub struct WorkspaceGroupHandle {
|
|||
pub struct WorkspaceGroupDataInner {
|
||||
outputs: Vec<Output>,
|
||||
capabilities: Vec<GroupCapabilities>,
|
||||
workspace_count: usize,
|
||||
}
|
||||
pub type WorkspaceGroupData = Mutex<WorkspaceGroupDataInner>;
|
||||
|
||||
|
|
@ -870,6 +871,11 @@ where
|
|||
changed = true;
|
||||
}
|
||||
|
||||
if handle_state.workspace_count != group.workspaces.len() {
|
||||
changed = true;
|
||||
}
|
||||
handle_state.workspace_count = group.workspaces.len();
|
||||
|
||||
for workspace in &mut group.workspaces {
|
||||
if send_workspace_to_client::<D>(dh, instance, workspace) {
|
||||
changed = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue