diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 655e7e6a83..2ce41a862b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ [versions] checkstyle = "9.3" -lwjgl3 = "3.3.3" +lwjgl3 = "3.3.4" nifty = "1.4.3" [libraries] diff --git a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java index 24a02bcd13..d7794d9964 100644 --- a/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java +++ b/jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglWindow.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2023 jMonkeyEngine + * Copyright (c) 2009-2024 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -319,7 +319,9 @@ public void invoke(final long window, final boolean focus) { } }); - if (!settings.isFullscreen()) { + int platformId = glfwGetPlatform(); + if (platformId != GLFW_PLATFORM_WAYLAND && !settings.isFullscreen()) { + // Wayland doesn't support window positioning. if (settings.getCenterWindow()) { // Center the window glfwSetWindowPos(window,