From 3e04c4e4f48195134aaf5671b528435fd8801e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 9 Nov 2021 18:23:44 +0100 Subject: [PATCH] wayland: guard XDG startup notification with HAVE_XDG_ACTIVATION MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes compilation on systems with “too old” wayland-protocols --- wayland.c | 2 ++ 1 file changed, 2 insertions(+) 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)) {