Wayland: Fix formatting of attention request

This commit is contained in:
Camilla Löwy 2024-01-24 23:51:36 +01:00
parent 9317970243
commit bdedec9932

View File

@ -2367,8 +2367,11 @@ void _glfwRequestWindowAttentionWayland(_GLFWwindow* window)
if (window->wl.activationToken)
xdg_activation_token_v1_destroy(window->wl.activationToken);
window->wl.activationToken = xdg_activation_v1_get_activation_token(_glfw.wl.activationManager);
xdg_activation_token_v1_add_listener(window->wl.activationToken, &xdgActivationListener, window);
window->wl.activationToken =
xdg_activation_v1_get_activation_token(_glfw.wl.activationManager);
xdg_activation_token_v1_add_listener(window->wl.activationToken,
&xdgActivationListener,
window);
xdg_activation_token_v1_commit(window->wl.activationToken);
}