aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-08-07 14:53:58 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-08-07 14:53:58 +0000
commit1faad5add7df9f9e8df262c48b58cc36b9af91a0 (patch)
treea8020d0903f63bc7f1bc85ca3f97c32edfb1be1b /url-mode.c
parentMerge branch 'releases/1.15' (diff)
parentwayland: cursor-shape-v1 is now always available (diff)
Merge branch 'wayland-protocols-1.32'
Closes #1391
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/url-mode.c b/url-mode.c
index bd9b5157..a5da7ca7 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -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);
}