mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 06:15:21 +01:00
[PR #911] [MERGED] refactor: sort niri workspaces before WorkspaceUpdate::Init #6655
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#6655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/JakeStanger/ironbar/pull/911
Author: @MapoMagpie
Created: 3/24/2025
Status: ✅ Merged
Merged: 3/24/2025
Merged by: @JakeStanger
Base:
master← Head:ordered_niri_workspace📝 Commits (2)
749c643refactor: sort niri workspaces before initc485d5cchore: comment for ordered_niri_workspace changing📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
src/clients/compositor/niri/mod.rs(+5 -1)📄 Description
Niri has a "Named Workspaces" feature,
where Workspace's id are assigned based on the order declared in the configuration file.
However, when Ironbar initializes, the WorkspacesChanged event output by Niri is not sorted by ID. As a result, even when I declare
sort = "added"in Ironbar's configuration file, the final sorting remains inconsistent.To achieve the expected behavior, we simply need to sort new_workspaces by ID before initializing workspaces in Ironbar. This change will not affect the original functionality.
This is my ironbar workspaces configuration
Before change


After change
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.