The window does not open silently with `WinitSettings::desktop_app()` on Wayland
- Dominant language
- Rust
- Stars
- 48.2k
- Forks
- 4.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 171
Description
## Bevy version
commit 56eb362327158a7c131a6e9b32f253fa9e6ef437
## \[Optional\] Relevant system information
Fedora 38, Wayland session, Ryzen 5 5600H with Radeon graphics (and also a 3060 which refuses to work with Wayland)
```
AdapterInfo { name: "AMD Radeon Graphics (RADV RENOIR)", vendor: 4098, device: 5688, device_type: IntegratedGpu, driver: "radv", driver_info: "Mesa 23.1.8", backend: Vulkan }
```
## What you did
Tried to run a `ui` example to make sure it works.
## What went wrong
The window did not open
## Additional information
as I mentioned and as it is known, nvidia is not able to work with wayland + vulkan and it crashes, so first I need to configure renderer to use low power preference:
```rust
App::new()
.add_plugins(DefaultPlugins.set(RenderPlugin {
render_creation: RenderCreation::Automatic(WgpuSettings {
power_preference: PowerPreference::LowPower,
..default()
}),
}))
```
sadly it was not enough to make it work By the way, are there any intentions to make this onboarding easier to other people who also use wayland + nvidia? I suppose there is significant amount of them and Fedora may drop X11 support in future releases. I asked about this on Discord here, but folks didn't really welcome those proposals. Maybe there is another way of improving things in that regard
the issue gets "fixed" for me if I either comment this line out:
```rust
.WinitSettings::desktop_app())
```
and run with either wayland or x11 (xwayland in my case)
or if I run using x11 (xwayland) only, in other scenarios the window won't appear.
not really a linked issue, but I found this: #5844
Contributor guide
Research direction
Start by running the referenced ui example on Wayland and tracing the WinitSettings::desktop_app() path, then compare it with the behavior when that setting is removed or when using X11/Xwayland. Done means the window opens silently with desktop_app() under the reported Wayland configuration without requiring the workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100