Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ public void invoke(int error, long description) {
}
);

if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {

// Disables the libdecor bar when creating a fullscreen context
// https://www.glfw.org/docs/latest/intro_guide.html#init_hints_wayland
glfwInitHint(GLFW_WAYLAND_LIBDECOR, settings.isFullscreen() ? GLFW_WAYLAND_DISABLE_LIBDECOR : GLFW_WAYLAND_PREFER_LIBDECOR);
}

if (!glfwInit()) {
throw new IllegalStateException("Unable to initialize GLFW");
}
Expand Down