|
@@ -274,6 +274,13 @@ public abstract class LwjglWindow extends LwjglContext implements Runnable {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+ 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()) {
|
|
if (!glfwInit()) {
|
|
throw new IllegalStateException("Unable to initialize GLFW");
|
|
throw new IllegalStateException("Unable to initialize GLFW");
|
|
}
|
|
}
|