Skip to content

Commit 9c82400

Browse files
authored
Rename macro IDYNTREE_GLFW_TRY_WAYLAND_FIRST
1 parent 4427a68 commit 9c82400

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/visualization/src/Visualizer.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
#define GLFW_EXPOSE_NATIVE_NSGL
2727
#elif defined(__linux__)
2828
#define GLFW_EXPOSE_NATIVE_X11
29-
#define GLFW_EXPOSE_NATIVE_WAYLAND
29+
#if defined(IDYNTREE_GLFW_TRY_WAYLAND_FIRST)
30+
#define GLFW_EXPOSE_NATIVE_WAYLAND
31+
#endif
3032
#define GLFW_EXPOSE_NATIVE_GLX
3133
#endif
3234

@@ -509,7 +511,7 @@ bool Visualizer::init(const VisualizerOptions &visualizerOptions)
509511

510512
void* nativeWindow = nullptr;
511513

512-
#ifdef IDYNTREE_USES_WAYLAND
514+
#ifdef IDYNTREE_GLFW_TRY_WAYLAND_FIRST
513515
// Try Wayland first
514516
struct wl_surface* waylandWindow = glfwGetWaylandWindow(pimpl->m_window);
515517
#else

0 commit comments

Comments
 (0)