]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labnag: s/LAB_EXIT_TIMEOUT/LAB_EXIT_CANCELLED/
authortokyo4j <hrak1529@gmail.com>
Thu, 2 Oct 2025 05:43:25 +0000 (14:43 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 13 Oct 2025 18:03:43 +0000 (19:03 +0100)
clients/labnag.c
include/action-prompt-codes.h
src/action.c

index 23e0be1f21a6b2ea0f08461a4be4a5dc1c2dbdf4..c9566328b6d1b5d97a10b9e95bdddb75c35da9a2 100644 (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) {
index d1ca0f05bbc50a637e77bc1d29c589382715acb9..68d1b0668210902d5b0680a1026a518d152f9a1e 100644 (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 */
index a78b01e81ed2141b71ca7f7edc973adf61ca2831..a351160d455a9dd55e47d12b7bf428aa830cf144 100644 (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");