summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBen Collerson <benc@benon.com>2023-06-12 17:03:35 +1000
committerPhilip Jones <philj56@gmail.com>2023-07-17 18:45:53 +0100
commit9a808337312efdf607e33c351fd72e7a95821f12 (patch)
tree0236beb445dbd405cdbc275c44752d7729c86be7 /src/main.c
parent47a7f68cd03948035617b83b31349330ae8e55dc (diff)
Return error if no selection is made
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8e36a2b..e91838f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1921,5 +1921,8 @@ int main(int argc, char *argv[])
wl_display_disconnect(tofi.wl_display);
log_debug("Finished, exiting.\n");
+ if (tofi.closed) {
+ return EXIT_FAILURE;
+ }
return EXIT_SUCCESS;
}