mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 06:15:21 +01:00
[GH-ISSUE #964] (Re upload) Workspace buttons disappear #8724
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#8724
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?
Originally created by @lordmujin on GitHub (May 9, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/964
Describe the bug
When switching workspaces, after hyprland and ironbar start, if I switch to another workspace, the one I was at the start vanishes. If I do
ironbar reloadit goes back to normal but the behavior repeats.Duplicate of: https://github.com/JakeStanger/ironbar/issues/464
To Reproduce
Set favorite workspaces, start hyprland in this case, switch workspaces, and sometimes it works correctly, but fails more often.
Expected behavior
That all favorite workspaces are persistent
System information:
Configuration
Config
Styles
Additional context
Screenshots
@psynyde commented on GitHub (May 10, 2025):
Facing the same issue with same specs. (same os, wm and ironbar version)
@JakeStanger commented on GitHub (May 18, 2025):
I've not been able to replicate this. I'm going to need some more information around the repro steps please.
Specifics like which workspaces you're switching to/from, whether there's anything open on those workspaces, etc are very helpful.
If you can also please capture debug logs using:
that will hopefully give some insight into what's happening under the hood.
@lordmujin commented on GitHub (May 18, 2025):
Thanks for the tip, its a odd behavior, I noticed it happens when the workspace has no window open, and it can happen in any.
I started ironbar with logs it, I was in workspace 2 and moved to workspace 3, workspace 2 disappears and the others behave correctly
@ApproachingApathy commented on GitHub (Jun 17, 2025):
I have a similar issue. Workspace buttons get stuck on whatever monitor they spawned on. When I move a workspace to another monitor, the button stays on the existing monitor.
Config and Versions
Work space config:
Versions
@CameronBarnes commented on GitHub (Apr 2, 2026):
I believe I have encountered similar behavior and can explain how it's occurring and submit a fix that covers at least some cases.
My config defines a series of numbered favorites for each monitor. Selecting one of those favorites(lets say 5 for example) that is not already open does not open a new workspace, because favorites by default appear to have an id of -1, which obviously isnt our example id of 5. ironbar just assumes the name will be enough, but as far as I can tell that information is never passed to hyprland.
When manually opening a favorite workspace(such as with a keybind) that ironbar button will work correctly as long as the workspace has contents. But when it is no longer present the remove_workspace behavior gets triggered and either removes the component entirely or sets the button id to the invalid value of -1.
I addressed this by having the favorite buttons set the workspace id to the same value as the name when it is a valid i64 and then had the remove_workspace behavior ignore buttons where the id is the name of a favorite on the current monitor. This likely will leave a similar issue outstanding with named workspaces, but I wouldnt be sure how to go about resolving that.
Please let me know if you'd like me to submit a PR for this issue. Or if there needs to be more discussion about addressing named workspaces. I've probably already spent significantly more time tracing all the channel signals through the code than I should have.
@JakeStanger commented on GitHub (Apr 2, 2026):
A partial fix sounds good for now. I'm not sure how resolvable the name issue will be, but will be worth readdressing that once ext-workspave support is in. Thanks for taking the time to investigate.
@CameronBarnes commented on GitHub (Apr 2, 2026):
I've created pull request #1439 for this issue and the partial fix