Skip to content

Commit

Permalink
Fix wayland get window position (#68)
Browse files Browse the repository at this point in the history
* Fix wayland get window position

* Moving wayland glfw error handle
  • Loading branch information
gravit0 authored Feb 26, 2024
1 parent d492af5 commit 8f65665
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8f65665

Please sign in to comment.