-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Refuse to run under wayland #1276
Comments
Any reason why you still have picom installed when you are using wayland? |
It's mainly that I want Gnome alongside i3, if I need a more complete desktop environment. Although I can't speak for if the problem exists on other distros than NixOS, I feel like installing a package shouldn't break your desktop. The main reason I want it to refuse to run under wayland is that it was really obscure to find out that picom was the culprit. Maybe refusing to run is a bit much, although I don't know of any reason to run under wayland. Warning the user would be sufficient. |
I think picom isn't doing anything wrong here, in fact this sounds more like a gnome/mutter Xwayland support problem. Also may I ask how did you determine picom was the culprit here? |
And most importantly, I don't know if there even is a way to detect whether we are running under Xwayland or not. If you know, do tell. |
instead of that should prevent picom from launching in wayland |
std::getenv("WAYLAND_DISPLAY") != nullptr is how I check if we're running in xwayland |
@jmanc3 that only checks if you are running under wayland, which does often means you are also running under xwayland but is not a guarantee. so, if we use that it would be a hack. |
@DarioDarko yep I was also thinking along this line. problem is picom is started by xdg autostart, and I can't find a way to make it only start under a x11 session. it is possible to use |
I raised an issue to xdg-specs, hope they will give us something: https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/137 |
I would like for picom to refuse to run under wayland. I faced a problem while running Gnome (Wayland) where picom broke xwayland. The effect was that no x-windows would show up. I suspect that the cause of this is that the autostart entry in
/etc/xdg/autostart
causes picom to start which messes with gnome.Platform
NixOS 24.05 amd64
Environment
picom version
v11
Diagnostics
Version: v11
Extensions:
Misc:
(Another compositor is already running)
Drivers (inaccurate):
Backend: glx
Backend: egl
Steps of reproduction
Expected behavior
Current Behavior
The text was updated successfully, but these errors were encountered: