Wayland: Only print out window attention error once

This commit is contained in:
Kovid Goyal
2019-04-27 14:53:31 +05:30
parent 8b47e63136
commit 408cd9cf9b

8
glfw/wl_window.c vendored
View File

@@ -1256,8 +1256,12 @@ void _glfwPlatformHideWindow(_GLFWwindow* window)
void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
{
// TODO
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Window attention request not implemented yet");
static GLFWbool notified = GLFW_FALSE;
if (!notified) {
_glfwInputError(GLFW_PLATFORM_ERROR,
"Wayland: Window attention request not implemented yet");
notified = GLFW_TRUE;
}
}
int _glfwPlatformWindowBell(_GLFWwindow* window)