diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-09-21 16:31:46 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-09-21 16:31:46 +0000 |
| commit | b2963bbf80973bd23e1d4ff4ead0df917dce7c6b (patch) | |
| tree | 2dd8c79f389cc77e1134e19cca0d761d7f95031f /wayland.c | |
| parent | wayland: check activation supported before activating (diff) | |
changelog: crash when xdg token is set, but compositor does not support activation
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |
