Skip to content

Commit

Permalink
Rename macro IDYNTREE_GLFW_TRY_WAYLAND_FIRST
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Jan 10, 2025
1 parent 4427a68 commit 9c82400
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/visualization/src/Visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9c82400

Please sign in to comment.