mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
045ead985c
commit
79832c16e2
1 changed files with 2 additions and 2 deletions
4
notify.c
4
notify.c
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue