From 8f65665a7afe0dc6fc46d2d279a86e4cb07dc0f5 Mon Sep 17 00:00:00 2001 From: Gravit <12893402+gravit0@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:37:04 +0700 Subject: [PATCH] Fix wayland get window position (#68) * Fix wayland get window position * Moving wayland glfw error handle --- .../main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java b/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java index 968637a87..224dd28f8 100644 --- a/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java +++ b/earlydisplay/src/main/java/net/neoforged/fml/earlydisplay/DisplayWindow.java @@ -465,6 +465,7 @@ public void initWindow(@Nullable String mcVersion) { // Show the window glfwShowWindow(window); glfwGetWindowPos(window, x, y); + handleLastGLFWError((error, description) -> LOGGER.debug(String.format("Suppressing GLFW get window position error: [0x%X]%s", error, description))); this.winX = x[0]; this.winY = y[0]; glfwGetFramebufferSize(window, x, y);