notify: name the activation action 'default'

This is less unique, but also works better with notification daemons
that trigger the 'default' action when e.g. clicked.
This commit is contained in:
Daniel Eklöf 2024-07-23 16:48:15 +02:00
parent 045ead985c
commit 79832c16e2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -54,7 +54,7 @@ consume_stdout(struct notification *notif, bool eof)
} else if (!eof) } else if (!eof)
break; break;
if (strcmp(line, "activate-foot") == 0) if (strcmp(line, "default") == 0)
notif->activated = true; notif->activated = true;
/* Check for 'xdgtoken=xyz' */ /* Check for 'xdgtoken=xyz' */
@ -231,7 +231,7 @@ notify_notify(struct terminal *term, struct notification *notif)
(const char *[]){ (const char *[]){
term->app_id ? term->app_id : term->conf->app_id, term->app_id ? term->app_id : term->conf->app_id,
term->window_title, icon_name_or_path, title, body, urgency_str, term->window_title, icon_name_or_path, title, body, urgency_str,
"activate-foot=Click to activate"}, "default=Click to activate"},
&argc, &argv)) &argc, &argv))
{ {
return false; return false;