mirror of
https://github.com/swaywm/sway.git
synced 2025-04-04 19:38:01 +03:00
swaynag: allow specifying more buttons which execute and dismiss
I don't love -z / -Z, but I figure this patch is far from being accepted for other reasons too.
This commit is contained in:
parent
ce494a5811
commit
a974300652
4 changed files with 30 additions and 1 deletions
|
@ -76,6 +76,11 @@ static void swaynag_button_execute(struct swaynag *swaynag,
|
|||
}
|
||||
_exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
if (button->dismiss) {
|
||||
swaynag->run_display = false;
|
||||
}
|
||||
|
||||
if (waitpid(pid, NULL, 0) < 0) {
|
||||
sway_log_errno(SWAY_DEBUG, "waitpid failed");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue