-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
setting window class doesn't work on wayland #1336
Comments
Thanks for the report, however we don't have any wayland specific code, did you try with xwayland? |
Wayland does not have a direct equivalent to the WM_CLASS property found in X11. We should probably report back to the user that this value will be ignored. Did you use XWayland or Wayland natively to spawn Contour within Hyprland? Also, what are you trying to achieve? Maybe we'll find another way to solve this. :) |
Mb it's possible to handle this situation similarly to what alacritty does? Also I'm pretty sure wezterm does smth similar since the same option works there. Yap, running natively; Basically I need to run an instance of contour in a scratchpad, and |
Ok this is an interesting problem and related to how Qt forwards the information to the "window system". On X11, the designated application name will be used to set the Wayland's Keep in mind, that app ID on Wayland is supposed to be a domain name (e.g. So if someone would like to use that to customize windowing behaviour based on that, I'd recommend to not use p.s.: it'll still require a patch to be applied, i'll drop it asap. Please test it then, and tell me if it worked for you. Is this possible? |
Hm, hyprct reports the class as Maybe I'm setting it wrong?
or |
This is interesting. I need to figure out how to get that information on Wayland myself (I'm more of an X11 user, up until now, we'll see how soon that'll change :) ) I looked into my PR and wondered. the app Id should be set (via org-domain) iff the platform name is You could run contour like so: I'll keep you posted if i was fast enough to figure out my brain damage. Many thanks for you patience. :) |
Ok, i've found it out, I think. I used Sway and |
@c0h2r would you mind giving the PR (latest updates) another try, please? EDIT: In case you did build from source, please do the following to get the latest updates (because I usually force-push within dev branches): git remote update --prune
git reset --hard origin/fix/appid-on-wayland All the best... |
Confirmed working. Thanks! |
Contour Terminal version
0.3.1.200/0.3.12.262/0.4.0.6089
Installer source
something else (please specify below)
Operating System
Nixos unstable
Architecture
x86-64
Other Software
hyprland 0.32.0
Steps to reproduce
either set the wm_class via
profiles.<profilename>. wm_class
or pass it viacontour class
Expected Behavior
hyprctl clients
should display the new classActual Behavior
Nothing changes, although the result is slightly different on the old/stable and the version obtained from github actions. In the former case class is set to
contour
; on the git version it is simply goes blank if specified via an argument, and doesn't change when specified in the configuration.Additional notes
Regarding the versions, the oldest one was obtained from nixpkgs (built from source), the newer versions were "repackaged" from .debs for ubuntu 22.04 (obtained from releases and github actions' artifacts).
The text was updated successfully, but these errors were encountered: