Native Wayland support on Linux #669
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#669
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As I reported on the Discord, it is possible to get
machworking natively on Wayland (i.e. without Xwayland, using native wayland surfaces) with a relatively simple patch. Reported here for tracking purposes/as a meta issue for Wayland support.As you can see, Dawn loads wayland libs at runtime.
glfwGetWindowPosis not supported on Wayland, so that one is commented out - a better solution would be ignoring that specific "Feature not supported" error.This patch is pretty hacky and serves merely as a proof of concept, hence why this is not a PR. I leave the final implementation to Stephen :).
Note that two missing lines in Dawn itself, which are required to get wayland surfaces working.
Closing in favor of #376 (until we update Dawn to the latest version and it actually works)
I think Ali merged most of these changes via #670 though