wayland: guard XDG startup notification with HAVE_XDG_ACTIVATION

Fixes compilation on systems with “too old” wayland-protocols
This commit is contained in:
Daniel Eklöf 2021-11-09 18:23:44 +01:00
parent a08f4bc551
commit 3e04c4e4f4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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)) {