Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Race condition when Hyprland workspaces are renamed after creation. #3830

Open
matt-fff opened this issue Dec 15, 2024 · 0 comments
Open

Race condition when Hyprland workspaces are renamed after creation. #3830

matt-fff opened this issue Dec 15, 2024 · 0 comments

Comments

@matt-fff
Copy link

When a Hyprland workspace is created, it will become orphaned if it's renamed before this call to retrieve the list of workspaces from Hyprland. The workspaces are matched to monitors by name, not ID. So the newly created workspaces don't appear in the Waybar.

This is common when Waybar is used in conjunction with a tool like hyprland-autoname-workspaces.

I have a fix I'm using locally, which just falls back to trying to match against the ID. Though it feels a bit hacky to me - it would be better if it was possible to extract the ID of the created workspace from the Hyprland event, itself. Then the match would be safe regardless of renaming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant