mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 19:32:02 +00:00
Don't crash when setting icon or getting focus on Wayland
This commit is contained in:
parent
fbdb53b9ca
commit
f59bfa68b4
@ -2112,8 +2112,7 @@ void _glfwSetWindowTitleWayland(_GLFWwindow* window, const char* title)
|
|||||||
void _glfwSetWindowIconWayland(_GLFWwindow* window,
|
void _glfwSetWindowIconWayland(_GLFWwindow* window,
|
||||||
int count, const GLFWimage* images)
|
int count, const GLFWimage* images)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
fprintf(stderr, "!!! Ignoring Error: Wayland: Setting window icon not supported\n");
|
||||||
"Wayland: The platform does not support setting the window icon");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos)
|
void _glfwGetWindowPosWayland(_GLFWwindow* window, int* xpos, int* ypos)
|
||||||
@ -2356,8 +2355,7 @@ void _glfwRequestWindowAttentionWayland(_GLFWwindow* window)
|
|||||||
|
|
||||||
void _glfwFocusWindowWayland(_GLFWwindow* window)
|
void _glfwFocusWindowWayland(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
fprintf(stderr, "!!! Ignoring Error: Wayland: Focusing a window requires user interaction\n");
|
||||||
"Wayland: The platform does not support setting the input focus");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwSetWindowMonitorWayland(_GLFWwindow* window,
|
void _glfwSetWindowMonitorWayland(_GLFWwindow* window,
|
||||||
|
Loading…
Reference in New Issue
Block a user