Fix Wayland Crash
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
diff --git a/src/wl_window.c b/src/wl_window.c
|
||||||
|
index 5b491ff..f54b244 100644
|
||||||
|
--- a/src/wl_window.c
|
||||||
|
+++ b/src/wl_window.c
|
||||||
|
@@ -2236,16 +2236,16 @@ void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos)
|
||||||
|
// A Wayland client is not aware of its position, so just warn and leave it
|
||||||
|
// as (0, 0)
|
||||||
|
|
||||||
|
- _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||||
|
- "Wayland: The platform does not provide the window position");
|
||||||
|
+ fprintf(stderr,
|
||||||
|
+ "Wayland: The platform does not provide the window position");
|
||||||
|
}
|
||||||
|
|
||||||
|
void _glfwSetWindowPosWayland(_GLFWwindow* window, int xpos, int ypos)
|
||||||
|
{
|
||||||
|
// A Wayland client can not set its position, so just warn
|
||||||
|
|
||||||
|
- _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||||
|
- "Wayland: The platform does not support setting the window position");
|
||||||
|
+ fprintf(stderr,
|
||||||
|
+ "Wayland: The platform does not support setting the window position");
|
||||||
|
}
|
||||||
|
|
||||||
|
void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height)
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
(patch' "0003-Implement-glfwSetCursorPosWayland")
|
(patch' "0003-Implement-glfwSetCursorPosWayland")
|
||||||
(patch' "0004-Fix-Window-size-on-unset-fullscreen")
|
(patch' "0004-Fix-Window-size-on-unset-fullscreen")
|
||||||
(patch' "0005-Avoid-error-on-startup")
|
(patch' "0005-Avoid-error-on-startup")
|
||||||
|
./0006-DontCrashWindowPos.patch
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user