godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.33k stars 21.06k forks source link

[TRACKER] XWayland-related issues #78581

Open Riteo opened 1 year ago

Riteo commented 1 year ago

Godot version

Various, mostly 4.x

System information

Linux/BSD - Wayland

Issue description

Lately lots of Linux distributions (such as Fedora 34, Debian 10 "buster" and Ubuntu 21.04) have been switching to Wayland compositors as their default windowing solution and many people don't even know that they're actually running one.

Luckily, people can still use Godot through a compatibility mechanism that most compositors have, called XWayland, which allows them to run X11 unmodified applications seamlessly.

It works fine most of the time but sadly it looks like that Godot, for whatever reason, doesn't work that well with it, manifesting issues that can't be replicated on common X11 window managers.

The above and the fact that most people aren't seemingly aware of XWayland are causing confusion in multiple bug reports lately.

The purpose of this tracker is to have all the currently known XWayland issues in one place to aid future bug reports.

4.x issues

- [ ] #57288
- [ ] #74168
- [ ] #75140
- [ ] #75752
- [ ] #77333
- [ ] #78487
- [ ] #75515
- [ ] #74723
- [ ] #78818
- [ ] #79102
- [ ] #79677
- [ ] #79820
- [ ] #80008
- [ ] #81732
- [ ] #82205
- [ ] https://github.com/godotengine/godot/issues/85342
- [ ] https://github.com/godotengine/godot/issues/93892
- [ ] https://github.com/godotengine/godot/issues/96137

(for #77333, unsure, some people report it also with native X11)

3.x issues

- [ ] #44741

Workaround

Most of those are windowing related (4.x) and can be worked around by running Godot with single window mode. To enable it, either go in the editor settings or run Godot with the --single-window CLI argument.

Steps to reproduce

Run Godot on a Wayland compositor through XWayland.

Minimal reproduction project

N/A

Production team edit: to make the lists use the [tasklist] format

kmare commented 9 months ago

An additional workaround that actually worked for me, is enabling the "Update continuously" option under Editor settings -> Interface -> Editor. Have to do that only for my Nvidia+Wayland desktop PC. On my laptop with Intel+Wayland, everything is fine.