mirror of
https://github.com/glfw/glfw.git
synced 2025-10-03 05:11:01 +00:00
wayland: don't crash app on api calls to window focus or window icon - just ignore them
This commit is contained in:
parent
36d0809370
commit
e89e9aee41
@ -1013,8 +1013,8 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
|||||||
void _glfwPlatformSetWindowIcon(_GLFWwindow* window,
|
void _glfwPlatformSetWindowIcon(_GLFWwindow* window,
|
||||||
int count, const GLFWimage* images)
|
int count, const GLFWimage* images)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
// _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||||
"Wayland: The platform does not support setting the window icon");
|
// "Wayland: The platform does not support setting the window icon");
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
|
void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
|
||||||
@ -1191,8 +1191,8 @@ void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
|
|||||||
|
|
||||||
void _glfwPlatformFocusWindow(_GLFWwindow* window)
|
void _glfwPlatformFocusWindow(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
// _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
|
||||||
"Wayland: The platform does not support setting the input focus");
|
// "Wayland: The platform does not support setting the input focus");
|
||||||
}
|
}
|
||||||
|
|
||||||
void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
||||||
|
Loading…
Reference in New Issue
Block a user