We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4427a68 commit 9c82400Copy full SHA for 9c82400
src/visualization/src/Visualizer.cpp
@@ -26,7 +26,9 @@
26
#define GLFW_EXPOSE_NATIVE_NSGL
27
#elif defined(__linux__)
28
#define GLFW_EXPOSE_NATIVE_X11
29
- #define GLFW_EXPOSE_NATIVE_WAYLAND
+ #if defined(IDYNTREE_GLFW_TRY_WAYLAND_FIRST)
30
+ #define GLFW_EXPOSE_NATIVE_WAYLAND
31
+ #endif
32
#define GLFW_EXPOSE_NATIVE_GLX
33
#endif
34
@@ -509,7 +511,7 @@ bool Visualizer::init(const VisualizerOptions &visualizerOptions)
509
511
510
512
void* nativeWindow = nullptr;
513
- #ifdef IDYNTREE_USES_WAYLAND
514
+ #ifdef IDYNTREE_GLFW_TRY_WAYLAND_FIRST
515
// Try Wayland first
516
struct wl_surface* waylandWindow = glfwGetWaylandWindow(pimpl->m_window);
517
#else
0 commit comments