Skip to content

Commit 408cd9c

Browse files
committed
Wayland: Only print out window attention error once
1 parent 8b47e63 commit 408cd9c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

glfw/wl_window.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,12 @@ void _glfwPlatformHideWindow(_GLFWwindow* window)
12561256
void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
12571257
{
12581258
// TODO
1259-
_glfwInputError(GLFW_PLATFORM_ERROR,
1260-
"Wayland: Window attention request not implemented yet");
1259+
static GLFWbool notified = GLFW_FALSE;
1260+
if (!notified) {
1261+
_glfwInputError(GLFW_PLATFORM_ERROR,
1262+
"Wayland: Window attention request not implemented yet");
1263+
notified = GLFW_TRUE;
1264+
}
12611265
}
12621266

12631267
int _glfwPlatformWindowBell(_GLFWwindow* window)

0 commit comments

Comments
 (0)