wayland: set xdg activation token surface to our top-level

This commit is contained in:
Daniel Eklöf 2021-05-10 18:01:59 +02:00
parent 3e92361534
commit f5f1bc8dd9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1589,7 +1589,8 @@ wayl_roundtrip(struct wayland *wayl)
}
static void
activation_token_done(void *data, struct xdg_activation_token_v1 *xdg_token, const char *token)
activation_token_done(void *data, struct xdg_activation_token_v1 *xdg_token,
const char *token)
{
struct wl_window *win = data;
struct wayland *wayl = win->term->wl;
@ -1627,6 +1628,7 @@ wayl_win_set_urgent(struct wl_window *win)
}
xdg_activation_token_v1_add_listener(token, &activation_token_listener, win);
xdg_activation_token_v1_set_surface(token, win->surface);
xdg_activation_token_v1_commit(token);
win->xdg_activation_token = token;
return true;