Skip to content

Commit

Permalink
Linux: force GLFW to use X11 instead of Wayland to workaround GLFW in…
Browse files Browse the repository at this point in the history
…itialization failure when run within a Flatpak container
  • Loading branch information
bwRavencl committed Jan 3, 2025
1 parent 445e1b2 commit 684c4e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,8 @@ public void windowOpened(final WindowEvent e) {

return 0;
});

GLFW.glfwInitHint(GLFW.GLFW_PLATFORM, GLFW.GLFW_PLATFORM_X11);
} else if (isMac) {
Configuration.GLFW_LIBRARY_NAME.set("glfw_async");
}
Expand Down

0 comments on commit 684c4e2

Please sign in to comment.