feat: allow naming pinned workspaces
This commit is contained in:
parent
8f5f7c897d
commit
db0b1afeb5
3 changed files with 19 additions and 3 deletions
|
|
@ -111,6 +111,7 @@ pub struct Workspace {
|
|||
pub fullscreen_surfaces: Vec<FullscreenSurface>,
|
||||
pub pinned: bool,
|
||||
pub id: Option<String>,
|
||||
pub name: Option<String>,
|
||||
|
||||
pub handle: WorkspaceHandle,
|
||||
pub focus_stack: FocusStacks,
|
||||
|
|
@ -386,6 +387,7 @@ impl Workspace {
|
|||
fullscreen_surfaces: Vec::new(),
|
||||
pinned: false,
|
||||
id: None,
|
||||
name: None,
|
||||
handle,
|
||||
focus_stack: FocusStacks::default(),
|
||||
image_copy: ImageCopySessions::default(),
|
||||
|
|
@ -419,6 +421,7 @@ impl Workspace {
|
|||
fullscreen_surfaces: Vec::new(),
|
||||
pinned: true,
|
||||
id: pinned.id.clone(),
|
||||
name: pinned.name.clone(),
|
||||
handle,
|
||||
focus_stack: FocusStacks::default(),
|
||||
image_copy: ImageCopySessions::default(),
|
||||
|
|
@ -446,6 +449,7 @@ impl Workspace {
|
|||
},
|
||||
tiling_enabled: self.tiling_enabled,
|
||||
id: self.id.clone(),
|
||||
name: self.name.clone(),
|
||||
})
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue