Game window embedding is a pretty huge change for #godotengine. It may not be enabled for you in existing projects:
Game window embedding on Linux requires the X11 display driver.
=> More informations about this toot | More toots from cd0@mastodon.social
For better or worse, Godot defaults to X11, not Wayland. In this case it's for the better: Wayland is very strict about process isolation, and embedding another process's window in yours would violate that ethos.
Also Wayland in general does not allow applications to position their windows in absolute screen coordinates, so just sticking it over top would also be difficult.
=> More informations about this toot | More toots from cd0@mastodon.social
That being said it is theoretically possible for the game process to share its surface with the editor process using the XDG Foreign Protocol, which is fairly well supported. I'm sure it would be non-trivial, and because wayland is not the default, it's not a priority.
https://wayland.app/protocols/xdg-foreign-unstable-v2
=> More informations about this toot | More toots from cd0@mastodon.social
The godot wayland implementation already has code for xdg_foreign, and will get a handle to the protocol if the compositor offers it. But it appears that it is not actually utilized (yet).
https://github.com/godotengine/godot/blob/36a62d0c6aba33bda9e86000653c2717f2711eff/platform/linuxbsd/wayland/wayland_thread.cpp#L3314
=> More informations about this toot | More toots from cd0@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini