mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
Prefer Wayland over X11
When GLFW_ANY_PLATFORM is used (which is the default), X11 would be selected on a Wayland system with XWayland and where XDG_SESSION_TYPE was not set. Closes #2035
This commit is contained in:
committed by
Camilla Löwy
parent
dbf7cfc4dc
commit
65102e2005
@@ -50,12 +50,12 @@ static const struct
|
||||
#if defined(_GLFW_COCOA)
|
||||
{ GLFW_PLATFORM_COCOA, _glfwConnectCocoa },
|
||||
#endif
|
||||
#if defined(_GLFW_X11)
|
||||
{ GLFW_PLATFORM_X11, _glfwConnectX11 },
|
||||
#endif
|
||||
#if defined(_GLFW_WAYLAND)
|
||||
{ GLFW_PLATFORM_WAYLAND, _glfwConnectWayland },
|
||||
#endif
|
||||
#if defined(_GLFW_X11)
|
||||
{ GLFW_PLATFORM_X11, _glfwConnectX11 },
|
||||
#endif
|
||||
};
|
||||
|
||||
GLFWbool _glfwSelectPlatform(int desiredID, _GLFWplatform* platform)
|
||||
|
||||
Reference in New Issue
Block a user