mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1452] [MERGED] refactor(workspace): move locked into Container for bar refactor preparation
#1407
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1452
Author: @JustForFun88
Created: 5/18/2025
Status: ✅ Merged
Merged: 6/15/2025
Merged by: @LGUG2Z
Base:
master← Head:refactor_locked_container📝 Commits (1)
65696f9Movelockedproperty directly to theContainer📊 Changes
10 files changed (+462 additions, -381 deletions)
View changed files
📝
komorebi-bar/src/widgets/komorebi.rs(+5 -4)📝
komorebi/src/border_manager/mod.rs(+2 -2)📝
komorebi/src/container.rs(+56 -1)📝
komorebi/src/lib.rs(+9 -1)➕
komorebi/src/lockable_sequence.rs(+357 -0)➖
komorebi/src/locked_deque.rs(+0 -316)📝
komorebi/src/process_command.rs(+6 -2)📝
komorebi/src/ring.rs(+0 -4)📝
komorebi/src/window_manager.rs(+7 -11)📝
komorebi/src/workspace.rs(+20 -40)📄 Description
Key Changes
locked: boolfield directly to theContainerstruct.locked_containersfromWorkspace.komorebi_barto accesslockeddirectly fromContainer.Motivation
This change prepares the simplification in the code in
komorebi_bar, where tuple fields made it hard to understand what data represents. Investigation showedlockedis an inherent property of a container, not a workspace-level concern.As a result, the code is now cleaner and more readable in areas that deal with locked containers.
Tested
Not yet tested; will review behavior later.Works on Windows 11.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.