aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-03 11:58:55 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-03 11:58:55 +0000
commit347b90eaaea79863611f3fd405611e482ed3196d (patch)
tree06732af5a350d8b4e8b71ba9b7ed5eef5b6115da /wayland.c
parentconfig: format all (well, most) error messages in the same way (diff)
parentfoot/client: implement xdga client activation (diff)
Merge branch 'xdga-launch'
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");