glfw: fix compile error

This commit is contained in:
Gregory Anders
2023-11-11 17:21:10 -05:00
parent 98b43007a0
commit 593cfa256c

View File

@ -662,8 +662,9 @@ pub const Surface = struct {
// Not supported except on Linux // Not supported except on Linux
if (comptime builtin.os.tag != .linux) break :selection ""; if (comptime builtin.os.tag != .linux) break :selection "";
break :selection glfwNative.getX11SelectionString() orelse const raw = glfwNative.getX11SelectionString() orelse
return glfw.mustGetErrorCode(); return glfw.mustGetErrorCode();
break :selection std.mem.span(raw);
}, },
}; };