Skip to content

Commit 5bb363a

Browse files
author
wil
committed
fix|wayland full screen
1 parent 60c101f commit 5bb363a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ public void invoke(int error, long description) {
274274
}
275275
);
276276

277+
if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {
278+
glfwInitHint(GLFW_WAYLAND_LIBDECOR, settings.isFullscreen() ? GLFW_WAYLAND_DISABLE_LIBDECOR : GLFW_WAYLAND_PREFER_LIBDECOR);
279+
}
280+
277281
if (!glfwInit()) {
278282
throw new IllegalStateException("Unable to initialize GLFW");
279283
}

0 commit comments

Comments
 (0)