From 0f5812affc3b9bdbea0c087f0edb9b1230c53d2a Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Tue, 6 Feb 2024 16:10:52 -0700 Subject: [PATCH] launcher: use wlroots api to manipulate the token seat It isn't safe to manipulate the seat field directly, as the seat may be destroyed. Ref: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4539 --- sway/desktop/launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/launcher.c b/sway/desktop/launcher.c index 00a7e38a6..e20344d3d 100644 --- a/sway/desktop/launcher.c +++ b/sway/desktop/launcher.c @@ -238,7 +238,7 @@ struct launcher_ctx *launcher_ctx_create_internal(void) { struct wlr_xdg_activation_token_v1 *token = wlr_xdg_activation_token_v1_create(server.xdg_activation_v1); - token->seat = seat->wlr_seat; + wlr_xdg_activation_token_v1_set_seat(token, seat->wlr_seat); struct launcher_ctx *ctx = launcher_ctx_create(token, &ws->node); if (!ctx) {