try platform check for glfw

This commit is contained in:
2026-02-02 15:19:08 -06:00
parent c069267c7e
commit 7a73c3fc72

View File

@@ -20,6 +20,10 @@ namespace Archimedes {
WindowGLFW(Window* p, const std::function<void(Event*)>& sendEvent) { WindowGLFW(Window* p, const std::function<void(Event*)>& sendEvent) {
if(glfwPlatformSupported(GLFW_PLATFORM_WAYLAND))
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND);
data.window = p; data.window = p;
data.sendEvent = sendEvent; data.sendEvent = sendEvent;