From b2963bbf80973bd23e1d4ff4ead0df917dce7c6b Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 21 Sep 2023 18:31:46 +0200 Subject: changelog: crash when xdg token is set, but compositor does not support activation --- wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wayland.c') diff --git a/wayland.c b/wayland.c index d5dc838f..d12bfc48 100644 --- a/wayland.c +++ b/wayland.c @@ -1701,7 +1701,7 @@ wayl_win_init(struct terminal *term, const char *token) wl_surface_commit(win->surface.surf); /* Complete XDG startup notification */ - if (token && wayl->xdg_activation) + if (token && wayl->xdg_activation != NULL) xdg_activation_v1_activate(wayl->xdg_activation, token, win->surface.surf); if (!wayl_win_subsurface_new(win, &win->overlay, false)) { -- cgit v1.3