aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-09 17:23:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-09 17:23:44 +0000
commit3e04c4e4f48195134aaf5671b528435fd8801e3c (patch)
treed64d2a80eca91f7b740f990b2bd6b80967e517e7
parentPKGBUILD: drop (diff)
wayland: guard XDG startup notification with HAVE_XDG_ACTIVATION
Fixes compilation on systems with “too old” wayland-protocols
-rw-r--r--wayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 44157ab2..dd313813 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1448,9 +1448,11 @@ wayl_win_init(struct terminal *term, const char *token)
wl_surface_commit(win->surface);
+#if defined(HAVE_XDG_ACTIVATION)
/* Complete XDG startup notification */
if (token)
xdg_activation_v1_activate(wayl->xdg_activation, token, win->surface);
+#endif
if (conf->tweak.render_timer_osd) {
if (!wayl_win_subsurface_new(win, &win->render_timer)) {