-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
sway/workspaces window-rewrite does not support Xwayland #3020
Comments
Having this same issue and would also be interested in a fix. Can help contribute if I find the time |
I think this fix would be very useful. Sorry that I do not know enough about coding to help. |
Am also running into this problem, and for me it is not picking up the For me the application that does not show an icon is Code - OSS output from get_tree:
|
For those who are interested, the workaround at the moment for me is using utilities that wrap around waybar to correctly show all icons. More specifically, I am using Sworkstyle. |
Thankyou @euglevi will take a look at this 🙏 |
It is not possible to map X11 applications to icons using the window-rewrite mechanism. The implementation currently checks only for the app_id to match against the
<class>
pattern.Waybar/src/modules/sway/workspaces.cpp
Line 272 in ca17bdb
Sway does not provide this for X11 applications running with Xwayland. Instead we could use node["window_properties"]["class"] and node["window_properties"]["instance"] to determine the application.
I could send a PR if it would be accepted, but I'm not sure what would be the preferred way to solve this.
<class>
could fall back to checking window_properties.class if app_id is not provided,<x11class>
(also it would be best to rename<class>
to<app_id>
to avoid any confusion but I guess it must stay for backwards compatibility).The text was updated successfully, but these errors were encountered: