From 775af3f6127a9bba6ec569f918183b8cf08e6eb3 Mon Sep 17 00:00:00 2001 From: stephengold Date: Tue, 22 Oct 2024 15:35:31 -0700 Subject: [PATCH 1/2] update LWJGL3 to v3.3.4 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From 7b9e16ef9e370e02393574c41f76ac82cd755373 Mon Sep 17 00:00:00 2001 From: stephengold Date: Sun, 27 Oct 2024 09:57:29 -0700 Subject: [PATCH 2/2] bypass window positioning on Wayland platforms --- .../src/main/java/com/jme3/system/lwjgl/LwjglWindow.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,