mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-17 22:05:22 -05:00
wayland: xdg-activation is now always available
Since we're requiring wayland-protocols >= 1.32
This commit is contained in:
parent
e0475a5421
commit
d59a4e7a77
4 changed files with 5 additions and 43 deletions
|
|
@ -86,7 +86,6 @@ spawn_url_launcher_with_token(struct terminal *term,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#if defined(HAVE_XDG_ACTIVATION)
|
||||
struct spawn_activation_context {
|
||||
struct terminal *term;
|
||||
char *url;
|
||||
|
|
@ -101,13 +100,11 @@ activation_token_done(const char *token, void *data)
|
|||
free(ctx->url);
|
||||
free(ctx);
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool
|
||||
spawn_url_launcher(struct seat *seat, struct terminal *term, const char *url,
|
||||
uint32_t serial)
|
||||
{
|
||||
#if defined(HAVE_XDG_ACTIVATION)
|
||||
struct spawn_activation_context *ctx = xmalloc(sizeof(*ctx));
|
||||
*ctx = (struct spawn_activation_context){
|
||||
.term = term,
|
||||
|
|
@ -123,7 +120,6 @@ spawn_url_launcher(struct seat *seat, struct terminal *term, const char *url,
|
|||
|
||||
free(ctx->url);
|
||||
free(ctx);
|
||||
#endif
|
||||
|
||||
return spawn_url_launcher_with_token(term, url, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue