mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
wayland: guard XDG startup notification with HAVE_XDG_ACTIVATION
Fixes compilation on systems with “too old” wayland-protocols
This commit is contained in:
parent
a08f4bc551
commit
3e04c4e4f4
1 changed files with 2 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue