labnag: s/LAB_EXIT_TIMEOUT/LAB_EXIT_CANCELLED/

This commit is contained in:
tokyo4j 2025-10-02 14:43:25 +09:00 committed by Johan Malm
parent 364a1d5207
commit 2b3aadb6af
3 changed files with 3 additions and 3 deletions

View file

@ -1233,7 +1233,7 @@ nag_run(struct nag *nag)
wl_display_cancel_read(nag->display);
}
if (nag->pollfds[FD_TIMER].revents & POLLIN) {
exit_status = LAB_EXIT_TIMEOUT;
exit_status = LAB_EXIT_CANCELLED;
break;
}
if (nag->pollfds[FD_SIGNAL].revents & POLLIN) {

View file

@ -3,7 +3,7 @@
#define LABWC_ACTION_PROMPT_CODES_H
#define LAB_EXIT_FAILURE 255
#define LAB_EXIT_TIMEOUT 254
#define LAB_EXIT_CANCELLED 254
#define LAB_EXIT_SUCCESS 0
#endif /* LABWC_ACTION_PROMPT_CODES_H */

View file

@ -934,7 +934,7 @@ action_check_prompt_result(pid_t pid, int exit_code)
if (exit_code == LAB_EXIT_SUCCESS) {
wlr_log(WLR_INFO, "Selected the 'then' branch");
actions = action_get_actionlist(prompt->action, "then");
} else if (exit_code == LAB_EXIT_TIMEOUT) {
} else if (exit_code == LAB_EXIT_CANCELLED) {
/* no-op */
} else {
wlr_log(WLR_INFO, "Selected the 'else' branch");