-
Notifications
You must be signed in to change notification settings - Fork 299
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
MangoHud still relies on X11 even when built with_x11=disabled and with_wayland=enabled #1497
Comments
position setting works fine for me |
It does not for me. But I just compiled with your pull request and shortcuts work now. In other Wine/Proton versions, shortcuts still don't work, but the Interestingly, Minecraft (with GLFW 3.4, so Wayland native) does not show anything with |
The second issue is probably because x11 is still being used by wine and since your mangohud has no libx11 the shortcuts don't work. |
But I set up the other Wine/Proton versions to also use Wayland with winetricks/protontricks and I can confirm that they do not trigger There is also Minecraft to consider, which should be free of any Wine/Proton issues. Again, without MangoHud no process visible. With it they are, and shortcuts don't work. |
I pushed another commit could you give that a try |
Just tried. Unfortunately still the same issue in Proton and Minecraft. Only my custom system Wine works in this configuration. Does this #1496 perhaps have any relation? |
you need to clean build, and use the latest commit (I fixed a build error) |
Ok, assuming you didn't commit anything else as I'm typing this :D , I just clean compiled with all three commits and same issue in Proton and Minecraft. No shortcuts, no But something definitely got fixed with the latest commit. Because before the commits, a game that runs over X11/XWayland because of But now there is no MangoHud. So this is progress. |
where can I get this build of proton you are using? My minecraft installs use flatpak so I can't test that |
It's just Wine TkG with some of the customization options changed. There is more info here. Frogging-Family/wine-tkg-git#936 (comment) in my comment and in the wine-tkg-git page itself. Make sure to also set Wayland as the Wine Graphics driver with winetricks. Btw, I have an Intel Arc GPU if that matters, I see that you fixed some Nvidia stuff in the latest commit. |
you also keep mentioning winetricks, but you don't need to use winetricks on wine 9.22+ just unset DISPLAY |
No, that's old advice. If you set Wayland as the only graphics backend for Wine, meaning you do it through Winetricks or through registry editing, without x11 fallback, then you do not need to unset Also, the change in Wine 9.22 is that it will use Wayland only if X11 fails. So that does not concern us here. |
I made that change in Wine 9.22. x11 fails when DISPLAY is unset, so it will automatically use Wayland. Just trying to avoid as many variables as possible since unsetting DISPLAY will force x11 to no function correctly |
Oh, then I must've misunderstood it. Anyways, I still prefer setting So far, since 9.0-rc1, this hasn't failed me once. |
That new pull request title is more accurate indeed, relates more to my main issue, which is MangoHud still relying on X11 when built I've been doing some more testing and will post a new comment detailing which scenarios triggers XWayland and which don't, in a more simpler to read format. |
Describe the bug
When built with
with_x11=disabled
andwith_wayland=enabled
, the HUD position is wrong and doesn't follow the config value, RShift_F11 doesn't change the position as none of the shortcuts work,display-server
config option also doesn't work.List relevant hardware/software information
To Reproduce
When running a game natively over Wayland, such as Windows games using Wine with the graphics backend set to Wayland (without x11 fallback) or Minecraft with GLFW 3.4 running natively over Wayland, if we build MangoHud with
with_x11=disabled
andwith_wayland=enabled
, the HUD position will be wrong, shortcuts won't work anddisplay-server
will return empty.Expected behavior
Shortcuts,
display-server
andposition
should work.Screenshots
Additional context
I made this issue back in April, which could be related. #1281
I build Wine with the Wayland driver and set it as the only graphics backend. Wine is also built with and using WoW64. I also use GLFW 3.4 with Minecraft. Both Wine games and Minecraft run natively over Wayland. When the games are running without MangoHud, no
xwayland
ormutter-x11-frames
are spawned/running/sleeping. I guess something got fixed since April and now, because now, even with MangoHud, those processes aren't spawned/running/sleeping at all. So that's exactly what I wanted. Thanks. It can be used without any X11 dependencies or calls. (Hopefully I'm correct in that last part)But the HUD is stuck and not configurable. That's the issue.
I should also mention that I don't use mangoapp or mangohudctl, so those may affect the building process or using it as Wayland only. Here's my PKGBUILD options:
Edit: Actually, none of the shortcuts work.
Edit 2: Ok so I've done some more testing.
Interestingly enough, the
position
option is honored in Minecraft and Orwell, both OpenGL Linux native games, but again the shortcuts don't work.In Wine, when using Proton UMU and Fsync, the option is honored but shortcuts don't work.
In Wine, when using Wine TkG Staging with NTSync, the option is honored wrong and shortcuts don't work. But the interesting part is that:
Very weird.
Edit 3: Nevermind what I said about MangoHud working without any X11 calls or dependencies. Minecraft, Orwell and other games launched through Proton UMU spawn
xwayland
andmutter-x11-frames
processes and they are running. Only games launched through Wine TkG Staging with NTSync+WoW64+Wayland don't have them. Even though Proton UMU is also using Wayland in my case. Interesting.I would very much like MangoHud to work without any X11 calls and dependencies, if it is possible of course.
Edit 4: So I've discussed this below but will add it here as well. The
position
anddisplay-server
values work with my custom system Wine. With some new commits, shortcuts also work. Noxwayland
andmutter-x11-frames
processes are triggered too.But these do not work with Proton and Minecraft. The processes are also triggered. So there still must be some x11 stuff deep in the code?
The text was updated successfully, but these errors were encountered: