Skip to content

Commit 98f5114

Browse files
authored
Merge pull request #2492 from JNightRider/wayland
Wayland fullscreen issue fixed
2 parents 20876cb + cc432ae commit 98f5114

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

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

277+
if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {
278+
279+
// Disables the libdecor bar when creating a fullscreen context
280+
// https://www.glfw.org/docs/latest/intro_guide.html#init_hints_wayland
281+
glfwInitHint(GLFW_WAYLAND_LIBDECOR, settings.isFullscreen() ? GLFW_WAYLAND_DISABLE_LIBDECOR : GLFW_WAYLAND_PREFER_LIBDECOR);
282+
}
283+
277284
if (!glfwInit()) {
278285
throw new IllegalStateException("Unable to initialize GLFW");
279286
}

0 commit comments

Comments
 (0)