aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 49c8ed92..22e3d6dc 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1374,7 +1374,7 @@ wayl_destroy(struct wayland *wayl)
}
struct wl_window *
-wayl_win_init(struct terminal *term)
+wayl_win_init(struct terminal *term, const char *token)
{
struct wayland *wayl = term->wl;
const struct config *conf = term->conf;
@@ -1444,6 +1444,10 @@ wayl_win_init(struct terminal *term)
wl_surface_commit(win->surface);
+ /* Complete XDG startup notification */
+ if (token)
+ xdg_activation_v1_activate(wayl->xdg_activation, token, win->surface);
+
if (conf->tweak.render_timer_osd) {
if (!wayl_win_subsurface_new(win, &win->render_timer)) {
LOG_ERR("failed to create render timer surface");