feat: allow naming pinned workspaces

This commit is contained in:
Robin Nehls 2026-05-30 19:14:13 +02:00 committed by Victoria Brekenfeld
parent 8f5f7c897d
commit db0b1afeb5
3 changed files with 19 additions and 3 deletions

View file

@ -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