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

ext_workspace_unstable: hidden/urgent workspace state always false #2102

Closed
AndreasBackx opened this issue Apr 19, 2023 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@AndreasBackx
Copy link

I was looking into the following issue and as a result dove a bit into the Waybar code, the Wayland unstable protocol that's still WIP, and slightly in Hyprland: Alexays/Waybar#2121. The initial problem there is that Waybar is not setting the .visible class on workspaces retrieved via ext_workspace_unstable. The spec being used by Hyprland (which is not the latest) doesn't have a specific "visible" field, though it can be assumed "visible" if it's not hiddden I would assume (the spec isn't entirely clear).

Is it therefore perhaps possible to set hidden to true in case the workspace is not visible on the screen? Then a PR can be proposed in Waybar to set add the .visible class if it's not hidden. I've had a quick look through the code and it doesn't seem trivial to me to determine whether a workspace is "visible" or not.

In the same branch I noticed that "urgent", the other available state, is also always false. Perhaps both can be tackled at the same time?

@vaxerski
Copy link
Member

urgent is not always false. It's true when an app requests attention.

@AndreasBackx
Copy link
Author

urgent is not always false. It's true when an app requests attention.

You're right, my apologies. I overlooked some uses: https://github.com/search?q=repo%3Ahyprwm%2FHyprland%20wlr_ext_workspace_handle_v1_set_urgent&type=code. Thanks for mentioning!

@AndreasBackx
Copy link
Author

@vaxerski I'm happy to provide a PR for this, though I'm not a great C++ developer. Could you explain how I could check whether a workspace is visible? Then I might be able to add support for this.

@vaxerski
Copy link
Member

idk maybe the aptly named CCompositor::isWorkspaceVisible

@vaxerski
Copy link
Member

the protocol has been dropped so closing

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants