diff --git a/src/wl_window.c b/src/wl_window.c index 97232140..5c9158f2 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1902,8 +1902,10 @@ void _glfwSetWindowIconWayland(_GLFWwindow* window, "Wayland: The platform does not support setting the window icon"); } -void _glfwSetWindowTaskbarProgress(_GLFWwindow* /*window*/, const int progressState, int completed) +void _glfwSetWindowTaskbarProgress(_GLFWwindow* window, const int taskbarState, int completed) { + (void)window; + const dbus_bool_t progressVisible = (taskbarState != GLFW_TASKBAR_PROGRESS_NOPROGRESS); const double progressValue = (double)completed / 100.0; diff --git a/src/x11_window.c b/src/x11_window.c index 0a5e8dfc..e54c2c9d 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -2152,8 +2152,10 @@ void _glfwSetWindowIconX11(_GLFWwindow* window, int count, const GLFWimage* imag XFlush(_glfw.x11.display); } -void _glfwSetWindowTaskbarProgressX11(_GLFWwindow* /*window*/, const int taskbarState, int completed) +void _glfwSetWindowTaskbarProgressX11(_GLFWwindow* window, const int taskbarState, int completed) { + (void)window; + const dbus_bool_t progressVisible = (taskbarState != GLFW_TASKBAR_PROGRESS_NOPROGRESS); const double progressValue = (double)completed / 100.0;