From 9c8240070df1c60b25ae1813251c44faef5ec5af Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Fri, 10 Jan 2025 14:30:47 +0100 Subject: [PATCH] Rename macro IDYNTREE_GLFW_TRY_WAYLAND_FIRST --- src/visualization/src/Visualizer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/visualization/src/Visualizer.cpp b/src/visualization/src/Visualizer.cpp index 40aa0f7e50..302ff639f9 100644 --- a/src/visualization/src/Visualizer.cpp +++ b/src/visualization/src/Visualizer.cpp @@ -26,7 +26,9 @@ #define GLFW_EXPOSE_NATIVE_NSGL #elif defined(__linux__) #define GLFW_EXPOSE_NATIVE_X11 - #define GLFW_EXPOSE_NATIVE_WAYLAND + #if defined(IDYNTREE_GLFW_TRY_WAYLAND_FIRST) + #define GLFW_EXPOSE_NATIVE_WAYLAND + #endif #define GLFW_EXPOSE_NATIVE_GLX #endif @@ -509,7 +511,7 @@ bool Visualizer::init(const VisualizerOptions &visualizerOptions) void* nativeWindow = nullptr; - #ifdef IDYNTREE_USES_WAYLAND + #ifdef IDYNTREE_GLFW_TRY_WAYLAND_FIRST // Try Wayland first struct wl_surface* waylandWindow = glfwGetWaylandWindow(pimpl->m_window); #else