{mach, gpu-dawn}: don't hardcode linux window manager to X11

This commit is contained in:
Ali Chraghi 2023-01-12 20:49:58 +03:30 committed by Stephen Gutekanst
parent 8a645fa1bf
commit a97a33334c
3 changed files with 58 additions and 60 deletions

View file

@ -156,7 +156,7 @@ pub fn detectGLFWOptions() glfw.BackendOptions {
if (target.isDarwin()) return .{ .cocoa = true };
return switch (target.os.tag) {
.windows => .{ .win32 = true },
.linux => .{ .x11 = true },
.linux => .{ .x11 = true, .wayland = true },
else => .{},
};
}