feat(wm): ensure workspace count

Allow the number of workspaces for a given monitor to be pre-created, so
that configuration options can be sent (name, padding, layout) before
the workspace has ever been activated.
This commit is contained in:
LGUG2Z
2021-07-30 12:06:29 -07:00
parent d8a717950c
commit 8c939328d1
5 changed files with 48 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ pub enum SocketMessage {
ChangeLayout(Layout),
FlipLayout(LayoutFlip),
// Monitor and Workspace Commands
EnsureWorkspaces(usize, usize),
Stop,
TogglePause,
Retile,
@@ -45,7 +46,7 @@ pub enum SocketMessage {
ContainerPadding(usize, usize, i32),
WorkspacePadding(usize, usize, i32),
WorkspaceName(usize, usize, String),
SetLayout(usize, usize, Layout),
WorkspaceLayout(usize, usize, Layout),
// Configuration
FloatClass(String),
FloatExe(String),